Component guide · Intermediate · 3 min read
Lightning, Radiation and EM Field Detectors

DFRobot Gravity AS3935 Lightning Distance Sensor, MCU-3935 AS3935 Module, SparkFun AS3935 Lightning Detector, DFRobot Gravity Geiger Counter and Electromagnetic Wave Detection Module
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The AS3935 chip listens for the radio burst from lightning and estimates how far away the storm is, up to about 40 km, so a weather station can warn before thunder arrives. The Geiger counter module counts ionising radiation pulses for background radiation monitoring and science projects. The EM wave detector gives an analog voltage that rises near electric fields from mains wiring and radio sources.
Key specs at a glance
- AS3935
- 500 kHz antenna, distance estimate 1-40 km in 14 steps, I2C or SPI
- Indoor/outdoor
- Selectable gain for AS3935
- Geiger counter
- GM tube, pulse output, CPM and uSv/h estimate
- EM detector
- 50 Hz to 100 MHz, 0-3 V analog, LED bar
- Supply
- 3.3-5 V
- Interface
- I2C/SPI plus IRQ (AS3935); digital pulse (Geiger); analog (EM)
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1DFRobot Gravity Lightning Distance Sensor – I2C Interface, 40km Range₹2,309
Option 2MCU-3935 AS3935 Lightning Sensor Module – I2C/SPI Interface₹2,529
Option 3SparkFun Lightning Detector Sensor – AS3935 SPI Module₹4,879
Option 4DFRobot Gravity Geiger Counter Ionizing Radiation Detector Module₹6,249
Option 5Electromagnetic Wave Detection Sensor Module – 50Hz-100MHz, 0-3V Analog Output, LED Display₹1,139
What the Lightning, radiation and EM field detectors: AS3935 lightning sensors, Geiger counter module and EM wave detector is
This guide covers three detectors: the AS3935 lightning sensor that estimates storm distance, a Geiger counter for radiation, and an EM field detector.
Mount the AS3935 away from motors, switching supplies, LCD backlights and Wi-Fi modules; these trigger false 'disturber' events. Set indoor or outdoor mode, enable disturber masking and tune the noise floor. Distance is an estimate from signal strength, not a precise range.
The Geiger tube runs at about 400 V generated on the board: do not touch the tube ends while powered. Count pulses for at least a minute; background radiation normally reads tens of counts per minute. Treat the uSv/h figure as indicative only, not a calibrated dosimeter.
Lightning, radiation and EM field detectors: AS3935 lightning sensors, Geiger counter module and EM wave detector pinout
The pins on the Lightning, radiation and EM field detectors: AS3935 lightning sensors, Geiger counter module and EM wave detector and what each one does.
| Pin | Function |
|---|---|
| SDA / SCL or SPI | AS3935 data |
| IRQ | AS3935 interrupt on lightning or noise |
| VCC / GND | Supply |
| Pulse out | Geiger counter count pin |
| AO | EM detector analog output |
- SDA / SCL or SPI
- AS3935 data
- IRQ
- AS3935 interrupt on lightning or noise
- VCC / GND
- Supply
- Pulse out
- Geiger counter count pin
- AO
- EM detector analog output
Wiring the Lightning, radiation and EM field detectors: AS3935 lightning sensors, Geiger counter module and EM wave detector
The Geiger tube's high voltage can give a sharp shock; keep fingers off the tube while it runs.
| Lightning, radiation and EM field detectors: AS3935 lightning sensors, Geiger counter module and EM wave detector pin | Connection | Note |
|---|---|---|
| AS3935 SDA/SCL | I2C pins | Address 0x03 by default on many boards |
| AS3935 IRQ | Interrupt pin | Read the event register on interrupt |
| Geiger pulse | Interrupt pin (D2) | Count in an ISR |
| EM AO | Analog pin | 0-3 V |
- AS3935 SDA/SCL
- Connection:
- I2C pins
- Note:
- Address 0x03 by default on many boards
- AS3935 IRQ
- Connection:
- Interrupt pin
- Note:
- Read the event register on interrupt
- Geiger pulse
- Connection:
- Interrupt pin (D2)
- Note:
- Count in an ISR
- EM AO
- Connection:
- Analog pin
- Note:
- 0-3 V
Example code
For AS3935, use the DFRobot_AS3935 or SparkFun AS3935 library and read the distance after each lightning interrupt.
const byte GEIGER_PIN = 2;
volatile unsigned long pulses = 0;
void onPulse() { pulses++; }
void setup() {
Serial.begin(115200);
pinMode(GEIGER_PIN, INPUT);
attachInterrupt(digitalPinToInterrupt(GEIGER_PIN), onPulse, FALLING);
}
void loop() {
delay(60000);
noInterrupts();
unsigned long cpm = pulses;
pulses = 0;
interrupts();
Serial.print("CPM: ");
Serial.print(cpm);
Serial.print(" approx uSv/h: ");
Serial.println(cpm / 153.8, 3); // factor for M4011-type tubes; check your tube
}Setup and tuning
keep the antenna away from motors, LED drivers and switching supplies, which cause false triggers.
set the AS3935 gain to match where it is mounted.
read the AS3935 status only when IRQ goes high, then check whether it was lightning or noise.
raise the noise floor level if you get many disturber events.
count pulses per minute and use the tube's conversion factor to estimate µSv/h. Keep the high-voltage tube area untouched.
What you need
Shop this list5 of 5 found in our store · ₹17,105
DFRobot Gravity Lightning Distance Sensor – I2C Interface, 40km Range: the part this guide coversDFRobot Gravity Lightning Distance Sensor – I2C Interface, 40km Range₹2,309
Generic MCU-3935 AS3935 Lightning Sensor Module – I2C/SPI Interface: another version this guide coversMCU-3935 AS3935 Lightning Sensor Module – I2C/SPI Interface₹2,529
SparkFun Lightning Detector Sensor – AS3935 SPI Module: another version this guide coversSparkFun Lightning Detector Sensor – AS3935 SPI Module₹4,879
DFRobot Gravity Geiger Counter Ionizing Radiation Detector Module: another version this guide coversDFRobot Gravity Geiger Counter Ionizing Radiation Detector Module₹6,249
Generic Electromagnetic Wave Detection Sensor Module – 50Hz-100MHz, 0-3V Analog Output, LED Display: another version this guide coversElectromagnetic Wave Detection Sensor Module – 50Hz-100MHz, 0-3V Analog Output, LED Display₹1,139
Alternatives and when to choose them
- Wind speed sensors: for a weather station.
- Rain gauges: more weather inputs.
Common mistakes to avoid
- Mounting the AS3935 next to a switching power supply.
- Polling the AS3935 instead of using its IRQ pin.
- Touching the Geiger tube's high-voltage area while powered.
- Treating hobby radiation readings as certified measurements.
Frequently asked questions
How far away can the AS3935 detect lightning?
It estimates storm distance from about 1 to 40 km in steps, enough to warn before thunder arrives.
Why does my lightning sensor trigger without a storm?
Electrical noise from motors, LEDs or switching supplies looks like lightning. Move it away and adjust the noise settings.
Can the Geiger counter measure radon or food safety?
It counts general ionising radiation for background monitoring and science, not certified safety tests.
Is the Geiger counter dangerous to touch?
The tube runs at about 400 V. The current is tiny, but avoid touching the tube area while powered.
What does the EM detector measure?
It gives a voltage for the strength of nearby electromagnetic fields from mains wiring and electronics.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.
