for a project i want to send readings collected by ultrasonic sensor connected to an arduino to another arduino using direct communication between two esp8266 modules one connected to each arduino.
how can i connect the esp to the arduino collecting the data and then make it send the collected data .
i tried putting the data read code and the esp8266 transmitter code in the same arduino file hence it would compile them together but it didn’t work it doesn’t show any readings ,
i don’t really know how the wiring between both devices should look like either.