changed conn() to take a string and have channel determine type of sensor