We have developed a lightning sensor, which is connected to our contextual smart home. It provides an early warning of potential lightning strikes nearby and some useful additional context, if for example the mains power is interrupted.
We have developed a lightning detection circuit and PCB, which is current in live testing in our contextual smart home.
Lightning sensors generate quite random pulses of short duration. When are connect them to an Arduino, we use hardware interrupts.