Many development boards incorporate an infrared receiver, such as Orange PI, Bananapi, Libre computer, Pine64, etc.
This manual explains how to configure the infrared receiver in Linux and shows an example of how to read the infrared codes emitted by a remote control.
Show all input devices: