I have just spent an hour developing this, it does what I need, but can it be improved upon?
Basically I have a set of manual readings (valval) for a given item (keykey)
We sometimes get some mad readings, but if the readings are a sensible distance apart (say 10) they can be trusted
I...