I am currently working on a device that contains a switch and a transceiver module, HC-12. I am using Pyserial for UART communication. I want to develop an interrupt for the serial port, to trigger whenever there is text data received in the buffer. I need an interrupt for the serial port, because I also have a push button that requires an interrupt whenever pressed. I need to create an interrupt for the UART to have priority over the interrupt for the push button. Any thoughts?