Inexpensive PLC Input Port Expansion Using Microcontroller.