I want to know how I can send messages between accounts and contracts.

The idea is that I have three Raspberry Pi devices. Each one is connected to an object (the first to a temperature sensor, the second to a LED and the third one to an LCD).

I want to create an autonomous system in which these objects can communicate through the Ethereum network.

How can I use Ethereum to send messages between connected machines?