weird nan issue with subtraction. had to pass pass full minmax func into deadsensorcheck. please explain