The Gravity Lightning Sensor employs AMS’s AS3935 lightning sensor IC and a Coilcraft MA5532-AE dedicated antenna to detect lightning distance, intensity, and frequency within a radius of 40km both indoors or outdoors.
I had a lot of problems getting this to work with an ESP32. Different ESP’s would see the sensor, but not communicate with it. I finally got it working on one particular ESP32 (but not a second identical one), but it was always a bit flaky.
Then I stopped using the DFRobot Library and switched to the Sparkfun Library. All the issues went away. All models of ESP32 I tried seem to work fine and the detection seems a lot more reliable.