Hardware Requirements

The treadmill run sensor requires 2 main components:
  • ESP32 DevKit microcontroller (with Micro-USB) - preferably use a microcontroller that has an onboard antenne to have a stronger bluetooth signal.
Connect the IR sensor to the pins of the ESP32 as shown above.
The sensor requires 5V and its digital output signal is connected to GPIO5 on the ESP32.
The ESP32 pin layout may vary depending on the manufacturer !