updated arduino code to connect to wifi and keep time