https://www.mathaelectronics.com/ir-infrared-sensor-with-arduino-and-with-raspberry-pi/