We are trying to program an Arduino UNO (also a ESP8266) with an infrared proximity sensor that will be used in front of a store.
The sensor receives the influence of sunlight. At night it triggers the DC motor as expected, only when a hand is 3-5 cm. close to the sensor.
But during the day the DC triggers ON by itself because of the sunlight interference.
We used lots of combinations of Infrared emitters and receivers, phototransistors, photodiodes, modules, etc.
We even tried to use a dark filter without any success. Now we are trying to code the infrared emitter using the IRremote library to see if remote control technique would work.
We think we already understood the basic principles of this library. We were able to read codes from different remote controls to capture and to send them through the infrared emitter.
Within the sketch loop we send the code an on the next line we use an if condition to check if a hand reflected the signal.
We are trying to figure out a programming technique that, at the same time, sends an infrared code and its reflects on a hand are captured by the infrared receiver.
Thanks a lot,