PCB and Firmware for Control of AP1220 Sensor