Projects7/3/2026
Smart City: ESP32 Parking Guidance with Ultrasonic Sensors & n8n
Help drivers find a free bay fast. ESP32 + HC-SR04 sensors report each parking bay to IoTFlow, and an n8n flow updates a guidance sign and logs occupancy.
Smart Parking Guidance
Circling for parking wastes fuel and time. Cheap ESP32 + HC-SR04 sensors detect whether each bay is occupied and report it to IoTFlow; an n8n flow updates a "spaces free" sign and logs occupancy for planning.
Device code (ESP32)
iot.virtualWrite("occupancy", bayOccupied() ? 1 : 0);
The n8n workflow
Here is the low-code automation that ties it together. In IoTFlow, every device event (telemetry, alert, command) can be forwarded to an n8n Webhook, and n8n calls back into the platform to control the device.
- The Webhook receives each bay's occupancy (metric = occupancy).
- An IF node checks whether a bay just became free.
- An HTTP Request updates the guidance sign; a Sheets node logs the count.
Wire it up in 3 steps
- In n8n, add a Webhook node, activate it and copy the Production URL.
- In IoTFlow โ Automations โ New automation, pick the event and paste the URL.
- Click Test, then let real device data trigger it automatically.
Tip: bind a Switch or Slider widget to the same virtual pin so you can also control the device by hand from the web or mobile app.
Happy building! ๐
Reviews
Leave a review