Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›Weather Station Sensors

How-to · Intermediate · 3 min read

Weather Station Sensors

Anemometer, Wind Vane and Rain Gauge

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerThe three core sensorsPick the output typeCounting rain tips and wind pulsesInstallation tipsTry itCommon mistakesFAQsParts and next steps
Short answer

A DIY weather station needs three outdoor sensors: an anemometer for wind speed, a wind vane for direction and a tipping-bucket rain gauge. Hobby versions give a pulse or a resistance value you read on a microcontroller. Industrial versions use RS485 Modbus, 0 to 5 V or 4 to 20 mA outputs. Count pulses with an interrupt and calibrate against the datasheet.

Key specs at a glance

Anemometer
Pulse, voltage, 4-20 mA or RS485 Modbus output
Wind vane
Reed switch resistor network (16 positions), voltage or RS485
Rain gauge
Tipping bucket, one reed pulse per fixed amount of rain
Rain drop module
Detects rain presence only, not amount
Supply
Pulse sensors need none; industrial types use 5 to 24 V
Mounting
Open air, away from walls, at roof height
01

The three core sensors

Anemometer

cups spin in the wind. A magnet and reed switch or Hall sensor give pulses per rotation. Count pulses over a few seconds and multiply by the datasheet factor to get speed. Ultrasonic versions have no moving parts.

Wind vane

a magnet turns a ring of reed switches, each with a different resistor, giving 8 or 16 directions through a voltage divider and ADC. Ultrasonic and RS485 vanes report degrees directly.

Rain gauge

a funnel fills a small bucket that tips when it holds a fixed volume of rain, often a fraction of a millimetre. Each tip closes a reed switch for a pulse.

02

Pick the output type

The output sets how you wire it and how far the cable can run.

OutputCable lengthWiringNotes
Reed pulseShort, a few metresInput pin with pull-upCheapest; debounce in software
0-5 V or 0-10 V analogMediumADC, maybe dividerCheck supply and scale
4-20 mALongCurrent shunt resistor to ADCResists noise; see the 4-20 mA current loop entry in the glossary
RS485 Modbus RTULong, up to 1 kmRS485 module, address and baudSeveral sensors on one pair; see RS485
Reed pulse
Cable length:
Short, a few metres
Wiring:
Input pin with pull-up
Notes:
Cheapest; debounce in software
0-5 V or 0-10 V analog
Cable length:
Medium
Wiring:
ADC, maybe divider
Notes:
Check supply and scale
4-20 mA
Cable length:
Long
Wiring:
Current shunt resistor to ADC
Notes:
Resists noise; see the 4-20 mA current loop entry in the glossary
RS485 Modbus RTU
Cable length:
Long, up to 1 km
Wiring:
RS485 module, address and baud
Notes:
Several sensors on one pair; see RS485
03

Counting rain tips and wind pulses

Use interrupts so no pulse is missed. Debounce by ignoring pulses closer than a few milliseconds. Multiply the rain tips by the sensor's volume per tip, which is on the datasheet.

Rain gauge tip counter (Arduino) · Arduino C++Verify & upload in Electrolark
const uint8_t RAIN_PIN = 2;
const float MM_PER_TIP = 0.2794;       // check your gauge datasheet
volatile unsigned long tips = 0, last = 0;

void onTip() {
  unsigned long now = millis();
  if (now - last > 50) { tips++; last = now; }   // 50 ms debounce
}

void setup() {
  Serial.begin(115200);
  pinMode(RAIN_PIN, INPUT_PULLUP);
  attachInterrupt(digitalPinToInterrupt(RAIN_PIN), onTip, FALLING);
}

void loop() {
  noInterrupts(); unsigned long t = tips; interrupts();
  Serial.print("Rain mm: "); Serial.println(t * MM_PER_TIP);
  delay(5000);
}
04

Installation tips

  • ✓Mount the anemometer high and clear of roofs and trees; a standard height is 10 m, but a clear mast above the roofline works at home.
  • ✓Level the rain gauge and keep the funnel clear of leaves.
  • ✓Use weatherproof connectors and seal cable entries.
  • ✓Protect against lightning by grounding the mast and using surge protection on long RS485 runs.
05

Try it: Current shunt resistor calculator

Change the values and the diagram and results update as you type.

06

Common mistakes to avoid

  • !Not debouncing the reed switch and counting double pulses.
  • !Mounting the anemometer in the shelter of a wall.
  • !Using the wrong volume per tip for a different gauge.
  • !Running a long analog cable without shielding.
  • !Leaving the rain drop module powered in the weather; the plate corrodes.
07

Frequently asked questions

What does a rain drop sensor module measure?

Whether the plate is wet. It does not measure the amount of rain, so use a tipping bucket for that.

How do I convert pulses to wind speed?

Use the factor on the datasheet, for example a certain speed for one pulse per second. It differs between models.

Can I use RS485 sensors with Arduino?

Yes, with a TTL to RS485 module and a Modbus library. See the Modbus guide.

How do I read a 16-position wind vane?

Read the ADC through a divider and match the value against a table of the vane's resistances.

Do I need a power supply for a reed pulse sensor?

No, a reed switch is passive. Just give it a pull-up resistor on the input.

Parts for this guide

  • Renke RS-YL-PL-2-02-EX Tipping Bucket Rain Gauge – Pulse Output
    ₹4,629View
  • Fluke 925 ESP Vane Anemometer
    ₹18,645View
  • Mini Ultrasonic Wind Speed and Direction Meter SN-3003-CFSFX-N01 – RS485 Modbus
    ₹10,119View
  • DFRobot Gravity Tipping Bucket Rainfall Sensor (I2C & UART) – Signal Adapter & Connector
    ₹3,889View
Shop Weather Stations, Rain & Wind Sensors

Calculators

Current shunt resistor calculatorPressure converter calculatorAdc resolution calculator

Terms in this guide

Tipping bucketA rain gauge with a small see-saw bucket that tips each time a fixed amount of rain collects, sending one pulse per tip.4-20 mA current loopA way to send a sensor reading as a current between 4 and 20 mA. It resists noise over long cables, and a reading below 4 mA signals a broken wire.InterruptA hardware signal that makes the microcontroller pause its program and run a short function immediately, for example when a button pin changes.DebounceFiltering the rapid on-off bouncing of a mechanical switch so one press counts once.ModbusA simple industrial request-and-reply protocol in which a master polls numbered registers on slave devices, usually over RS-485 (Modbus RTU) or Ethernet (Modbus TCP).IP ratingIngress Protection rating (IEC 60529), such as IP65: the first digit rates protection against dust and solids, the second against water.

Projects that use it

Put this into practice: 7 step-by-step builds in our project library use parts from this guide.

Intermediate · 2 hours4G SMS door alarm with an ESP32 and an LTE modemView projectIntermediate · 3 hoursRead RS485 Modbus industrial sensors with an ESP32View projectIntermediate · 2 hoursFind hot spots and heat leaks with an MLX90640 thermal cameraView project
Browse all 7 projects

Keep learning

Component guideBeginnerRain and Water Level Sensor ModulesA rain sensor module is a board of exposed interleaved traces plus a small LM393 comparator board.3 min read · SensorsComparisonBeginnerBME280 vs BMP280The BMP280 measures temperature and air pressure; the BME280 adds relative humidity.3 min read · SensorsComponent guideIntermediateRS-485 and RS-232 ModulesRS-485 and RS-232 carry UART serial data over longer cables than plain TTL.3 min read · IoT & WirelessBuying guideIntermediateAir Quality SensorsCompare particle, CO2 and VOC sensors for an air monitor: PMS5003 and SDS011, NDIR CO2 vs eCO2, wiring, warm-up, power and placement for honest readings.3 min read · SensorsComponent guideBeginnerESP32 GuideThe ESP32 is a low-cost 3.3 V microcontroller from Espressif with built-in Wi-Fi and Bluetooth, used for IoT devices, smart-home controllers and web dashboards.5 min read · Boards & Microcontrollers

Sources

  • Manufacturer data sheets for pulse anemometers and tipping-bucket gauges
  • World Meteorological Organization guide to instruments and observation methods

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerThe three core sensorsPick the output typeCounting rain tips and wind pulsesInstallation tipsTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide4 items · ₹37,282

Renke RS-YL-PL-2-02-EX Tipping Bucket Rain Gauge – Pulse Output · Fluke 925 ESP Vane Anemometer · Mini Ultrasonic Wind Speed and Direction Meter SN-3003-CFSFX-N01 – RS485 Modbus · DFRobot Gravity Tipping Bucket Rainfall Sensor (I2C & UART) – Signal Adapter & Connector

Run itChange the inputs and watch the output

Each tip of the bucket adds 0.2794 mm. Tap the button to tip it.

Serial monitor115200 baud
Rain mm: 0.00

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question