Skip to content

Sensor_Lib simplifies the use of various modules for Arduino and similar platforms, including motor drivers and sensors. This library offers clear functions for controlling motors, temperature sensors, LEDs, and buzzers. ๐Ÿ› ๏ธ๐ŸŒŸ

Notifications You must be signed in to change notification settings

Ankur11211/Sensor_Lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Sensor_Lib ๐Ÿ“ก

Sensor Library GitHub Releases

Welcome to the Sensor_Lib repository! This library provides ready-to-use functions and instructions for common components and sensors used with microcontrollers like Arduino, ESP32, and NodeMCU.

Table of Contents

Introduction

The Sensor_Lib library simplifies the process of measuring and controlling sensors. It allows developers to focus on their projects without worrying about the complexities of sensor calibration and control. Whether you're a beginner or an experienced developer, this library provides the tools you need to get started quickly.

For the latest releases, visit this link. You can download the necessary files from there and execute them to start using the library.

Features

  • Easy to Use: The library offers straightforward functions that make it easy to integrate sensors into your projects.
  • Wide Compatibility: Works with popular microcontrollers such as Arduino, ESP32, and NodeMCU.
  • Sensor Calibration: Built-in functions to calibrate sensors for accurate measurements.
  • Comprehensive Documentation: Clear instructions and examples for each function.
  • Community Support: Join a growing community of developers using the library.

Installation

To install the Sensor_Lib, follow these steps:

  1. Download the library from the Releases section.
  2. Extract the downloaded files.
  3. Move the extracted folder to your Arduino libraries directory, typically located at Documents/Arduino/libraries/.
  4. Restart the Arduino IDE.

Once installed, you can start using the library in your projects.

Usage

Using the Sensor_Lib is simple. Hereโ€™s a quick guide on how to include the library and use its functions.

  1. Include the library in your Arduino sketch:

    #include <Sensor_Lib.h>
  2. Initialize the sensor in the setup() function:

    void setup() {
        Serial.begin(9600);
        Sensor_Lib sensor;
        sensor.begin();
    }
  3. Use the library functions to read sensor data:

    void loop() {
        float value = sensor.readValue();
        Serial.println(value);
        delay(1000);
    }

This example shows how to read a value from a sensor every second. The library handles the details, allowing you to focus on your project.

Supported Sensors and Components

The Sensor_Lib supports a variety of sensors and components. Here are some of the most commonly used:

  • Temperature Sensors: DHT11, DHT22, LM35
  • Humidity Sensors: DHT11, DHT22
  • Light Sensors: LDR, BH1750
  • Distance Sensors: HC-SR04, VL53L0X
  • Pressure Sensors: BMP180, BMP280
  • Motion Sensors: PIR, MPU6050

This list is not exhaustive. Check the documentation for more details on supported sensors.

Examples

The library comes with several examples to help you get started. You can find these examples in the examples folder within the library directory. Here are a few highlighted examples:

Temperature and Humidity Monitoring

This example shows how to read temperature and humidity data using a DHT sensor.

#include <Sensor_Lib.h>

Sensor_Lib dht;

void setup() {
    Serial.begin(9600);
    dht.begin();
}

void loop() {
    float temperature = dht.readTemperature();
    float humidity = dht.readHumidity();
    Serial.print("Temperature: ");
    Serial.print(temperature);
    Serial.print(" ยฐC, Humidity: ");
    Serial.print(humidity);
    Serial.println(" %");
    delay(2000);
}

Light Level Measurement

Use this example to measure light levels with an LDR.

#include <Sensor_Lib.h>

Sensor_Lib ldr;

void setup() {
    Serial.begin(9600);
    ldr.begin();
}

void loop() {
    int lightLevel = ldr.readLightLevel();
    Serial.print("Light Level: ");
    Serial.println(lightLevel);
    delay(1000);
}

These examples demonstrate the ease of use and flexibility of the Sensor_Lib.

Contributing

We welcome contributions to the Sensor_Lib. If you have ideas for new features, improvements, or bug fixes, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or fix.
  3. Make your changes and commit them.
  4. Push your changes to your forked repository.
  5. Submit a pull request.

Your contributions help improve the library for everyone.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For questions or support, feel free to reach out via GitHub issues or contact the repository owner directly.

For the latest releases, you can always check this link. Download the necessary files and execute them to make the most of the Sensor_Lib.

Thank you for using Sensor_Lib! Happy coding!

About

Sensor_Lib simplifies the use of various modules for Arduino and similar platforms, including motor drivers and sensors. This library offers clear functions for controlling motors, temperature sensors, LEDs, and buzzers. ๐Ÿ› ๏ธ๐ŸŒŸ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •