Q: How does the IR sensor work?

Infrared (IR) break-beam sensors are a simple way to detect motion. They work by having an emitter side that sends out a beam of human-invisible IR light, with a receiver across the way which is sensitive to that same light. When something passes between the two, and it's not transparent to IR, then the 'beam is broken' and the receiver will let you know.

This is perfect for the kind of motion we want to detect, which must be accurate and specific.


  • With the x2 stemma JST connectors, plug them into A1 and A2 of the FunHouse.
  • Next, take the IR sensor and look for the end of the sensor that has 3 cables.
  • From A2, plug the cables into the sensor matching red to red (Power), black to black (GND), and white to yellow (DATA).
  • From A1, plug the black and red cables into the sensor's black and red ends. (white will not be used for this side)

This is how the IR sensor will work in practice:

visualizing the IR beam
Visualizing the IR beam

This guide was first published on Nov 10, 2021. It was last updated on Mar 08, 2024.

This page (Add the IR Sensor) was last updated on Mar 08, 2024.

Text editor powered by tinymce.