It has been awhile since we had a challenge question on the site (last one was the divide by 3 question), and I would like to have more of those in the future. I will basically pose a problem and ask you to solve it under certain conditions - e.g. least hardware or latency, lowest power etc.
This time the challenge is related to a real problem I encountered recently.