An AVR library for decoding RC5 infrared codes