Updated sketch for revision 1.3 of the board, with MOSFET sensor switch and VIN trace.