Added sensor variable for line detector