Java home automation server communicating with arduino