Sending Temp. Readings from one Arduino to another Arduino

Hi all,

I'm doing a project that involves sending temperature measurements from one Arduino to another. I currently have 4x DS18B20 sensors working and measuring temperatures and I'd like another Arduino to simply receive these values and read them. I currently have 2x Ethernet Shield and 2x Arduino UNO R3. The reason why I'm using the Ethernet shield is so that I could also log the temperature measurements on to an SD card, the shield would also allow me to communicate between the two Arduinos.

I was wondering the best way I could communicate between the two Arduinos, before even sending temperature measurements, I'd like to start it off by sending a simple line of text between the two, just to show that they can communicate. I'm not familiar with networking but from what I could gather online, TCP/IP would be the best method for me to communicate between the two. I wanted to know if anyone could help me out by showing me an example of one Arduino sending text to another or even tell me if there's a better approach to accomplish this task. Thank you for your time.

I appreciate that you already have the Ethernet shields but the simplest way to communicate between the two Arduinos is to use a Serial link. No extra hardware required. SD card reader boards are very cheap if you want to log the data.

Sending the data simply involves printing it to a serial interface, probably using SoftwareSerial to leave the hardware serial port free for debugging.

Have a look at Serial input basics - updated for examples of how to receive and parse the data.

Hey UKHeliBob,

Thanks for the tip, I'll check that link out and try serial communication instead. I'll let you know if I come into any problems, thanks again. :slight_smile: