Wirte me ESP32 codes.

Job ID: 30938375

Budget: $250 – $750 USD

Create an arrangement of 4 slaves ESP32 controlled by one master ESP32 with wireless communication using LoRa protocol.
Each slave is connected to a sensor that generates a small positive or negative voltage. The master is connected to a trigger, when the trigger is activated the communication pipe will be open for 2 seconds and the master will read each one of the slaves in a specific order.
The Reading:
The slaves will be arranged on a straight line that goes slave 1, slave 2, slave 3, and slave 4.
When the master is triggered, he will read the measurement of the sensor if the slave 1, then he will read slave 2, then slave 3, and finally slave 4. This process will be repeated for 2 seconds and the communication pipe will be closed until the master is triggered again.