Added sensor check at init