Your Contact to Sensirion

Umschlag

Contact

Contact our sensor experts:

Contact Form

Distributoren

Distributors

Here you find the nearest distributor in your area:

Our Distributors

Standorte

Locations

Find out where we are located:

Our Locations

toggle menu
  • Home
  • News
  • Platforms
    • Environmental Sensor Shield
    • Smart Gadget Development Kit
    • Wearable Development Kit
    • Raspberry Pi
    • Qualcomm Snapdragon
    • Arduino
    • Cypress PSoC Series
    • Generic Linux Support
    • Thingstream MQTT IoT Sensor Starter Kit
  • Tutorials
    • Wearable Development Kit: Build Your Own Device
    • Wearable Development Kit: Logging Data
    • Raspberry Pi: SFM Software Package
    • Raspberry Pi: Alexa with Indoor Air Quality
    • Raspberry Pi: Using Flow Sensors
    • Raspberry Pi: Weather Station
    • Arduino: Create Your Own CO2 Monitor
    • Arduino: Stand-Alone Liquid Flow Meter
    • Arduino: Interface for Liquid Flow Sensors
    • Arduino: Weather Station
    • Arduino: Closed Loop Volume Controller Using Liquid Flow Sensors
    • Arduino: Interface for Multiple SF06 Liquid Flow Sensors
    • Arduino: Interface for SF06 Liquid Flow Sensors with Level Shifter
    • Arduino: CAN Bus Flow Meter
  • Partner Spotlight
  • Applications
    • CO2 Monitor Reference Design
    • SHTC3 BLE Beacon Development Kit
    • On/Off Body Detection
    • Perspiration
    • Antifogging in VR Goggles
    • Directional Wind Meter Using SDP3x
    • Smart Speaker
  • Labs
    • #20 - Integrate Flex-PCB Sensors into Prototyping Setups
    • #19 - Smart Factory Particle Monitor Network
    • #18 - Inhalation Application Benefits
    • #17 - Sleep Analysis and Pulse Monitor
    • #16 - Thermal Comfort Sensor
    • #15 - Anti-Fogging for Bathroom Mirrors
    • #14 - Improved Puff Sensing of Inhalation Devices
    • #13 - Spirometer
    • #12 - Breath Detection
    • #11 - Stress, Mood and Emotion Sensing
    • #10 - CO2 Sensing in Car
    • #9 - Milk Fat Concentration Sensor
    • #8 - Presence Detection with IR Sensor
    • #7 - RH Sensor Trigger for BLE Beacon
    • #6 - Smart Inhaler
    • #5 - Windshield Ice Detector
    • >> See All Labs Ideas
  • Global Website

Contact

search
cart
DOWNLOAD CENTER BUY NOW INVESTORS
Sensirion AG Switzerland
  • Home
  • News
  • Platforms
    • Environmental Sensor Shield
    • Smart Gadget Development Kit
    • Wearable Development Kit
    • Raspberry Pi
    • Qualcomm Snapdragon
    • Arduino
    • Cypress PSoC Series
    • Generic Linux Support
    • Thingstream MQTT IoT Sensor Starter Kit
    • Platforms/Tutorials

      Choose Your Platform

      Here you can find an overview of various platforms which support Sensirion sensors. Furthermore, we have added some tutorials like how to build your own weather station with Arduino or how to use flow sensors on Raspberry Pi and many more. Learn more about which platform supports our sensors.

      Platform overview

  • Tutorials
    • Wearable Development Kit: Build Your Own Device
    • Wearable Development Kit: Logging Data
    • Raspberry Pi: SFM Software Package
    • Raspberry Pi: Alexa with Indoor Air Quality
    • Raspberry Pi: Using Flow Sensors
    • Raspberry Pi: Weather Station
    • Arduino: Create Your Own CO2 Monitor
    • Arduino: Stand-Alone Liquid Flow Meter
    • Arduino: Interface for Liquid Flow Sensors
    • Arduino: Weather Station
    • Arduino: Closed Loop Volume Controller Using Liquid Flow Sensors
    • Arduino: Interface for Multiple SF06 Liquid Flow Sensors
    • Arduino: Interface for SF06 Liquid Flow Sensors with Level Shifter
    • Arduino: CAN Bus Flow Meter
  • Partner Spotlight
  • Applications
    • CO2 Monitor Reference Design
    • SHTC3 BLE Beacon Development Kit
    • On/Off Body Detection
    • Perspiration
    • Antifogging in VR Goggles
    • Directional Wind Meter Using SDP3x
    • Smart Speaker
    • Applications

      Get Inspired by Our Applications

      On this page we want to inspire you with an assembly of various patented in-house application concepts, which our engineers came up with. Here you can find tutorials as well as documentations showing the versatile usage of Sensirion’s sensors.

      Explore now

  • Labs
    • #20 - Integrate Flex-PCB Sensors into Prototyping Setups
    • #19 - Smart Factory Particle Monitor Network
    • #18 - Inhalation Application Benefits
    • #17 - Sleep Analysis and Pulse Monitor
    • #16 - Thermal Comfort Sensor
    • #15 - Anti-Fogging for Bathroom Mirrors
    • #14 - Improved Puff Sensing of Inhalation Devices
    • #13 - Spirometer
    • #12 - Breath Detection
    • #11 - Stress, Mood and Emotion Sensing
    • #10 - CO2 Sensing in Car
    • #9 - Milk Fat Concentration Sensor
    • #8 - Presence Detection with IR Sensor
    • #7 - RH Sensor Trigger for BLE Beacon
    • #6 - Smart Inhaler
    • #5 - Windshield Ice Detector
    • >> See All Labs Ideas
    • Sensirion Labs

      Welcome to Sensirion Labs

      Sensirion stands for innovation. To inspire engineers and developers who are working with our sensor solutions, we have founded a new section called «Sensirion Labs». There you can find documentation to various ideas, which our employees came up with - for example how to use a differential pressure sensor to measure adblue / urea concentrations in liquids or how to build a pulse monitor. 

      See all labs ideas

Sensirion AG Switzerland
  • Sensirion Developers
  • Tutorials
  • Arduino: Interface for Liquid Flow Sensors

Tutorial: Arduino Interface for Liquid Flow Sensors

Summary

This quick start guide is aimed at customers who have worked with our Liquid Flow Meter Kits and are evaluating Sensirion liquid flow sensors in a prototyping scenario. This guide describes how to set up and connect a sensor to an Arduino UNO and how to run a first simple measurement using sample code.


What you need

  • Liquid Flow Meter Kit
  • Arduino UNO (Tested to work)
  • Sensirion Arduino Code examples

What you have to do

Setting up your Arduino (UNO)

Please note that these steps are simply a suggestion. Sensirion AG is not responsible for any technical issues arising from the Arduino board, setting it up and all electrical connections.

  • Download the Arduino Software here: https://www.arduino.cc/en/Main/Software
  • Follow Arduino’s Getting Started Guide (https://www.arduino.cc/en/Guide/HomePage)
  • For Arduino UNO: We have successfully tested our sample code with the Arduino UNO board and therefore recommend using it (Arduino UNO Getting Started Guide (https://www.arduino.cc/en/Guide/ArduinoUno)).

If you have successfully connected and tested your Arduino board, you are ready to continue to the next part.


Connecting your sensor

Figure 1: Connecting the LG16 liquid flow sensor with 5-pin Molex connector

Connect your liquid flow sensor to the Arduino board as described in figure above. Using screw headers may help make reliable and easy to use connections (for example:  277-1275-ND from www.digikey.com) In case you want to design and use your own cable, please follow the pin descriptions shown below precisely. Using the wrong voltage or applying voltages to the wrong pins can damage the sensor. Sensirion AG is not responsible for any damages incurred this way.

Figure 2: Molex connectors
Pin Label4 pin Molex Pin-no. 

(LS32 sensors LPG10 Eval
kit LD20 base station)
5 pin Molex Pin-no.
(LG16 sensors)
Arduino Pins
SCL12A5
SDA41A4
VDD233.5 or 5 V*
GND34GND
(Analog)5**
*3.5 or 5V supply voltage depends on the sensor. Please refer to your sensor's datasheet
** Analog wire (only for 5 pin Molex. Might be missing)

Running your first measurement

Once you have successfully tested your Arduino and have connected your sensor correctly, you can start your first measurement. Double-click ‘example_01_simple_measurement.ino’ of Example 1 of Sensirion AG’s sample Arduino code. This will launch the Arduino software suite and open the sample code. Simply upload the code to your Arduino board and wait for the process to finish. The measurement will begin automatically. In order to see the results, start the serial monitor from within the Arduino software suite (see arrow in the figure below).

After opening the serial monitor, a window will open that displays the unsigned integer sensor reading, as well as the flow rate in physical units with the two’s complement and scaling factor applied.

All code examples are commented for ease of understanding. Feel free to use and edit the code as you please. Remember to save a new copy before you start editing, to avoid overwriting the original sample code.


Follow Us

GitHub

Platforms/Tutorials

  • SHT31 Smart Gadget DevKit
  • Wearable DevKit
  • Raspberry Pi
  • Arduino
  • See all supported platforms

Applications

  • SHTC3 BLE Beacon Development Kit
  • On/Off Body Detection
  • Perspiration
  • Antifogging in VR Goggles
  • Directional Wind Meter Using SDP3x

Latest Labs Ideas

  • #19 - Smart Factory Particle Monitor Network
  • #18 - Inhalation Application Benefits
  • #17 - Sleep Analysis and Pulse Monitor
  • Overview of all labs ideas

Further Information

  • Developer News
  • Download Center
  • FAQs
  • Contact
  • Locations

Your Contact to Sensirion

Umschlag

Contact

Contact our sensor experts:

Contact Form

Distributoren

Distributors

Here you find the nearest distributor in your area:

Our Distributors

Standorte

Locations

Find out where we are located:

Our Locations

Please Find Here Various Support Topics

Buy Our Products at Your Local Distributor

About Sensirion

Environmental Sensors

Flow Sensors

Media/Newsroom

Investors

Useful Links

Sensirion Automotive Solutions

Career

Support Center

Partner Access

General

Terms and Conditions

Terms and Conditions for US Customers

Supplier Social Responsibility

Quality, Environment and Ethics

Sensirion AG

Laubisruetistrasse 50

8712 Staefa ZH, Switzerland

Tel. +41 44 306 40 00

infosensirioncom

2021 © Sensirion AG Switzerland
  • Home
  • Sitemap
  • Privacy Policy and Cookies
  • Imprint
  • Login
  • Disclaimer