Learning Representations For Anonymizing Sensor Data In Iot Applications