making sure sensor values are numeric