The MOC7811 is an optical sensor module commonly used for detecting motion or presence. It consists of an infrared emitter and a phototransistor, typically housed in a black plastic casing with a small gap in between for the passage of light. The emitter emits infrared light, and if an object comes within the range of […]