Sensor and VB 6

I need to control AL5A robot arm using VB 6 . In order to activate this robot, the IR sensor need to detect the robot to activate the robot. I have connected the sensor to pin 20 of the ssc-32 board. Now how do i retrieve signal from the sensor using VB 6 to activate the robot movement?