sketch to retrieve sensor data in bencode format