An Arduino helper for listening to infrared input via callbacks