routine to communicate between Rpi and Kobo.  Kobo is front end, Pi controls relays.