modified for Stepperature demo