Average of reading on IR sensor