How to use GP2D15 sensor?
show my code:

pic 16f84a
picbasic pro

--------------------------------

start:

input portb.1
if portb.1 = 1 then led

led:

high portb.3
pause 1000
low portb.3
pause 1000
goto start
---------------------------------


but not works... possible solution?



THX
by
chip_1