My group and I are trying to make a system using ESP8266 modules. We have several sensors like the hall-effect current sensor to detect if the AC is turned on, the brightness sensor to see if the light is left turned on, the gas sensor to see if the gas is turned on for too long, the flame sensor to see if the flame is turned on, proximity sensors that turn on the reminder board (explained later), and RFID that detects if the wallet and keys are placed or not. The reminder board would have the master ESP module that will get signals from ESP modules connected to each sensor. Then according to the signals received, the master ESP lights up green or red LED lights to indicate whether the AC, lights, and gas stove, are left turned on or if the wallet and keys are present in their container box. Also, two proximity sensors detect if the person is entering or leaving the house to give out an audio signal if the gas or flame is left turned on, however, this esp is a separate circuit and does not send the signal to the reminder board. I am having trouble finding codes for the whole system, someone could share any links for ESP8266 module codes or give me some suggestions regarding this project, I would appreciate any help. Thank you
I moved your topic to an appropriate forum category @arduino-2026.
The Nano Family > Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.
In the future, when creating a topic please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.
Thanks in advance for your cooperation.
what is the distance between modules?
what wireless protocol are you using?
have you considered ESPNOW
can any slave transmit at any time or does the master poll the slaves?
post your code (using code tags</>)
We haven’t decided on a wireless protocol yet. We’re considering Wi-Fi or ESP-NOW. Could you suggest which one would be better for our project? We need a reliable and low-latency communication method for sending sensor data to the master module.
Any slave can transmit data anytime based on the sensor input, and the distance would be around 15-20 ft atleast
if two ESPNOW slaves try to transmit at the same time you can get collisions and have to retransmit - one way to avoid that is for the master to poll slaves or use a WiFi TCP protocol
how often do slaves need to transmit?
WiFi or ESPNOW should be OK assuming no walls in the way (in particular metal walls)
they have to transmit once after the board is activated
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.