wrote code to poll dht