Gabi
The HBB2 manual is here: https://www.cncdrive.com/downloads/HDBB2_manual.pdf
If you look on page 5 it provides a table with the inputs and outputs pins with respect to the LPT port (Actually its an 26 pin IDC connector) or centronix port
I'll presume you are using the LPT port (IDC) and have wired it to the UC300 via one of the two compatible ports on the 5_LPT board (PORT 2 or PORT 3)
http://cncdrive.com/MC/UC300ETH%20datas ... manual.pdf
Given you have used input #1 on the HBB2, this corresponds to port2/port3, PIN 15 which you setup in UCCNC as your proximity input sensor