ESP32_chain_counter Windlass chain sensor pulls counter with SignalK wifi and NMEA2000 B&G chain counter pgn output The hardware setup: SailorHat ESP32 SailorHat optocoupler input to read sensor 2x optocoupler added to read up/down