updated emon client sketch