Average of reading on IR sensor

Thank you very much Rob.

The speed is what I'm after :slight_smile: