Added interval structure for sending sensor events and added Gzip
compression of JSON string to fit in 1024 byte UDP packet