Text this: Inexpensive PLC input port expansion using microcontroller