https://harizanov.com/2012/06/two-way-serial-communication-between-raspberry-pi-and-a-tinysensor/
Two-way serial communication between Raspberry Pi and a TinySensor