Arduino code for home communications