Pi/Arduino Serial Data

Craig Hissett wrote 04/29/2016 at 20:07 0 points

Just after a bit of advice...

I have an arduino reading some pH/Temp sensors and a Pi running a python webserver.

The Pi receives input from the users via the web page and sends commands via serial to switch relays and update the LCD screen etc,  and one of the commands requests the temp/pH data to be displayed on the web page.

My question is:

What is the best way to package and send my sensor data?

I'm thinking of putting it together as a JSON string that can be loaded and parsed by the python server script on the Pi.

All suggestions welcome :-)

Craig