Firstly isolate both circuits i mean analog and Microconreoller and check the output of 741 . is it going high and low on the basis of your sensor. if not then check your circuit. or if yes then
Which pic microcontroller you are using. Are you using anlog pins for input. if yes then make them D/I .
Put pull up resistance on that pin.