Fixed isNumeric() and test sensor thresholds