added out-of-range info and offset to IR sensor