Raindrop Sensor | LM393 Analog & Digital Output
Need a larger quantity?
Need bulk pricing?
Get a formal quotation with lead time and volume pricing.
For universities, companies, distributors, and project orders.
Raindrop Sensor | LM393 Analog & Digital Output
Raindrop Sensor Module with LM393 Analog and Digital Outputs
The Raindrop Sensor detects water droplets on a large plated sensing board and provides both analog and digital outputs. It is suitable for rain alarms, automatic window or sunroof projects, smart lighting triggers, and weather-station prototypes.
The module uses an LM393-style comparator for the digital threshold output and also exposes an analog voltage for estimating droplet coverage. For comparator background, see the TI LM393 product page; for Arduino wiring, it pairs well with an OpenELAB Sensor Shield V5.
The detection board is made for contact with droplets, but the electronics still need protection. Dry the board after testing and avoid corrosive liquids for long-term reliability.
Technical Specifications
| Parameter | Value |
|---|---|
| Sensor type | Raindrop / water droplet detection module |
| Comparator | LM393 dual comparator class circuit |
| Output types | AO analog output and DO/S digital output |
| Operating voltage | 3.3 V / 5 V |
| Sensing board area | Approx. 5.0 x 4.0 cm |
| Surface finish | Nickel-plated conductive traces |
| Sensitivity adjustment | Onboard potentiometer |
| Digital behavior | Typically high when dry, low when wet |
| Pinout | GND, VCC, S/DO, A/AO |
| Connector | 2.54 mm pitch pin header |
| Development support | Arduino, ESP32, STM32, Raspberry Pi Pico ADC/GPIO |
Board Layout & Label Guide
- Sensing plate: Large conductive area where raindrops bridge traces.
- LM393 comparator: Creates a clean digital threshold output.
- Potentiometer: Adjusts digital wet/dry trigger point.
- G pin: Power ground.
- V pin: 3.3 V or 5 V power input.
- S/DO pin: Digital rain detection output.
- A/AO pin: Analog droplet-level output.
Application Scenarios
1. Rain or Water Presence Monitor
Read the sensor surface and print a simple moisture level for roof, window, or tabletop experiments.
const int ANALOG_PIN = A0;
const int DIGITAL_PIN = 2;
void setup() {
pinMode(DIGITAL_PIN, INPUT);
Serial.begin(115200);
}
void loop() {
int wetLevel = analogRead(ANALOG_PIN);
bool wetSwitch = digitalRead(DIGITAL_PIN) == LOW;
Serial.print("analog=");
Serial.print(wetLevel);
Serial.print(" digital_wet=");
Serial.println(wetSwitch ? "yes" : "no");
delay(200);
}
2. Automatic Cover Trigger
Use a threshold to trigger a servo, relay, or warning output when water is detected.
const int SENSOR_PIN = A0;
const int OUTPUT_PIN = 8;
const int WET_THRESHOLD = 500;
void setup() {
pinMode(OUTPUT_PIN, OUTPUT);
}
void loop() {
int wetLevel = analogRead(SENSOR_PIN);
digitalWrite(OUTPUT_PIN, wetLevel > WET_THRESHOLD ? HIGH : LOW);
delay(100);
}
3. Moisture Trend Logger
Average several samples before logging so droplets, fog, or touch events are easier to compare.
const int SENSOR_PIN = A0;
void setup() {
Serial.begin(115200);
}
void loop() {
long total = 0;
for (int i = 0; i < 16; i++) {
total += analogRead(SENSOR_PIN);
delay(5);
}
Serial.print("average_wet_level=");
Serial.println(total / 16);
delay(1000);
}
Packing List
- 1 x Raindrop Sensor
FAQ
Q: Can this module work with Arduino?
A: Yes. Connect VCC, GND, and the signal pin to an Arduino-compatible board or an OpenELAB Sensor Shield V5.
Q: Can it work with 3.3 V controllers?
A: Yes for the listed 3.3 V to 5 V modules, but keep analog output within the controller ADC range.
Q: Is calibration required?
A: For threshold or quantitative use, calibrate in the final installation and record baseline readings.
Q: Can I use long wires?
A: Shorter wires are better for analog stability; use averaging in firmware if readings fluctuate.
Q: Does the module output precise engineering units?
A: Most of these modules provide relative analog or digital signals, not certified measurement data.
Q: What should I check first if it does not trigger?
A: Verify power, ground, pin mapping, threshold setting, and whether the signal is active-high or active-low.
Q: Is it suitable outdoors?
A: Only with enclosure protection. Keep connectors and electronics away from water and corrosion.
Q: Can it drive a relay or motor directly?
A: No. Use the module as an input to a controller, then drive a suitable relay or motor driver.
1. General Shipping Information
- We provide reliable shipping services with a tracking number for each order.
- Shipping addresses must be entered in English and should not contain special symbols, so that the courier system can recognize your location correctly.
- Please make sure your shipping address is accurate before placing your order. We ship strictly according to the address provided at checkout.
- In-stock orders are usually dispatched within 1 business day after order confirmation.
- Estimated delivery times refer to the period after dispatch and do not include order processing time, weekends, public holidays, customs inspection, or force majeure delays.
- If you need to cancel or modify your order, please contact us before the order is marked as “Shipped”. Once shipped, the order cannot be canceled or changed.
🚀 Need Faster Shipping?
If you require expedited shipping, please contact our customer support team at info@upenelab.com for a customized quote based on your destination.
2. Shipping Rates & Options
Shipping rates are calculated based on order value, destination, and available shipping methods. The final available options will be displayed at checkout.
2.1 Germany Domestic Shipping
| Shipping Method | Order Value | Cost | Est. Delivery |
|---|---|---|---|
| Deutsche Post | €0.00 - €50.00 | €4.95 | 2-4 Business Days |
| Deutsche Post | Over €50.00 | Free | 2-4 Business Days |
|
DHL Paket (Faster Delivery) |
€0.00 - €50.00 | €6.95 | 1-3 Business Days |
|
DHL Paket (Faster Delivery) |
€50.00 - €100.00 | €2.00 | 1-3 Business Days |
|
DHL Paket (Faster Delivery) |
Over €100.00 | Free | 1-3 Business Days |
2.2 Selected EU Countries / Regions
Available EU shipping destinations are shown at checkout based on your shipping address. For orders shipped to selected EU countries or regions outside Germany, we use FedEx Regional Economy.
| Shipping Method | Order Value | Cost | Est. Delivery |
|---|---|---|---|
| FedEx Regional Economy | €0.00 - €100.00 | €7.95 | 3-5 Business Days |
| FedEx Regional Economy | Over €100.00 | Free | 3-5 Business Days |
EU orders may be fulfilled from our Munich warehouse or, when applicable, from our Shenzhen warehouse depending on inventory availability. For EU member states, OpenELAB covers applicable import duties and taxes under DDP service where required.
2.3 United States
| Region | Shipping Method | Order Value | Cost | Est. Delivery |
|---|---|---|---|---|
|
Continental U.S. (50 States) |
USPS Ground Advantage | €0.00 - €45.00 | €4.95 | 3-7 Business Days |
| USPS Ground Advantage | Over €45.00 | Free | 3-7 Business Days | |
| USPS Priority Mail | €0.00 - €45.00 | €16.95 | 1-4 Business Days | |
| USPS Priority Mail | Over €45.00 | €14.95 | 1-4 Business Days | |
|
Non-Continental U.S. (AK, HI, PR, etc.) |
USPS Ground Advantage | €0.00 - €60.00 | €6.95 | 5-9 Business Days |
| USPS Ground Advantage | Over €60.00 | Free | 5-9 Business Days |
Non-Continental U.S. regions include Alaska, American Samoa, Guam, Hawaii, the Marshall Islands, the Northern Mariana Islands, Palau, Puerto Rico, the U.S. Virgin Islands, and U.S. Armed Forces addresses.
2.4 International Destinations Outside the EU
For selected international destinations outside the EU, including Switzerland, the United Kingdom, and Norway, shipping rates are as follows:
| Order Amount | Shipping Cost |
|---|---|
| €0.00 - €300.00 | €19.95 |
| Over €300.00 | Free |
For non-EU destinations, import duties, taxes, and customs fees may be charged by the destination country and are the responsibility of the recipient.
3. Warehouses & Fulfillment
Our products may be stored in our Munich, Arlington, and Shenzhen warehouses. The actual shipping warehouse depends on product availability and destination.
3.1 Munich Warehouse
For products stored in our Munich warehouse, we use Deutsche Post or DHL Paket for domestic deliveries within Germany. For selected EU destinations outside Germany, we use FedEx Regional Economy.
3.2 Arlington Warehouse
For products stored in our Arlington warehouse, we use USPS or UPS for deliveries within the United States.
3.3 Shenzhen Warehouse
For pre-order items or products fulfilled directly from our Shenzhen warehouse, we arrange reliable international shipping based on destination and inventory status. For EU member states, OpenELAB covers applicable import duties and taxes under DDP service where required.
4. Inventory, Pre-orders & Split Shipments
- Inventory Status: Please check the product page for real-time stock information. If an item is out of stock in our local warehouses, it may be marked as “Pre-order”.
- Pre-order Fulfillment: Pre-order items may be shipped directly from Shenzhen or restocked to a local warehouse first before final delivery.
- Split Shipments: If your order contains both in-stock and pre-order items, we may ship them separately. No additional shipping fee will be charged for split shipments caused by our fulfillment arrangement.
5. Customs, Taxes & Delivery Issues
5.1 Customs and Taxes
For EU Member States:
Whether shipped from Germany or China, OpenELAB covers applicable import duties and taxes under DDP service where required. Customers in EU member states should not be charged additional import duties or VAT upon delivery.
For destinations outside the European Union, such as Switzerland, Norway, and the United Kingdom, import duties, taxes, and customs fees may be charged by local authorities upon delivery. These fees are the responsibility of the recipient.
5.2 Damaged, Delayed, or Lost Parcels
Please inspect your parcel upon delivery where possible. If you notice visible damage, please report it to the courier and contact us as soon as possible. This does not affect your statutory consumer rights.
If your parcel is delayed, lost, returned to sender, or the tracking information has not updated for an unusual period of time, please contact us at info@upenelab.com. We will assist you in checking the shipment status with the courier.
5.3 Incorrect Address or Failed Delivery
If a parcel cannot be delivered due to an incorrect or incomplete address provided by the customer, refusal of delivery, or failure to collect the parcel, additional shipping or return costs may apply.
6. VAT
For orders within the EU, VAT is collected at checkout according to the applicable destination rules. No additional VAT should be collected upon delivery for EU member state orders covered under our DDP shipping arrangement.


