So I’ve been trying to use the IR sensor for my project. I’ve read the previous topics and tried the solutions but still no luck.
This is my IR connection and the code that I’ve tried for it on Putty. I’ve connected the signal pin of the IR to the digital pin 2 on the bolt module and tried it out. The IR detects an obstacle but i guess the bolt doesn’t read it.
No matter what i try the program always reads the else loop and gives me just that output. If i remove the else loop there’s no output at all. Even if there’s nothing in front of the sensor and the obstacle light doesn’t glow it gives me output saying that “something passed”
I’d really appreciate any help on this matter.