Treshold for line sensor corrected