Build a 12 input pulse counter - multiple input pulse counting Arduino Pulse counter sketch by Trystan, and tested by Glyn. Use a serial connection to to your EmonPI