Ultrasonic People Counter MQTT : 6 Steps (with Pictures)

All steps in setup must be completed twice for 2 sensors.

Connect your ultrasonic sensor to the breadboard as illustrated in the images.

Solder your WEMOS Chip to have female connection ports into 5V, G, D4 & D3.

Red wire goes into the 5V of the WEMOS Chip

Orange Wire goes into D3 of the WEMOS Chip

Black Wire goes into D4 of the WEMOS Chip

Green Wire goes into the G port of the WEMOS CHIP (Changed from black wire in physical model for clarity)

Connect the WEMOS into your computer via USB and run the following code:

Read more here: Source link