Added sensor read in timer handler