Added sensor initialization