Retrieve the heart rate in real time of a GARMIN FORERUNNER 235 watch using an ANT+ key.

Hello, I currently have a study project which consists of using a Garmin watch and an ANT Usb Stick 2 key.

I am programming a Windows application in java where I need to retrieve the heart rate of the person wearing the watch in real time. But I can't do it at all.. Can you help me?
Otherwise, if it is possible and easier to save this frequency in a .txt file from a program, it can work.

Thank you for your answers