Skip to content

programming a NodeMCU to read data from an SHT20 sensor (humidity and temperature) and send it through a WebSocket server.

Notifications You must be signed in to change notification settings

mmahdin/NodeMCU-WebSocket

Repository files navigation

NodeMCU SHT20 Sensor Data WebSocket Server

This repository contains code for programming a NodeMCU to read data from an SHT20 sensor (humidity and temperature) and send it through a WebSocket server. Users can connect to the NodeMCU via its IP address (within the same network) to view a chart of sensor data. Additionally, users can toggle an LED on the web page, all facilitated through WebSocket communication. The web pages are created using HTML, CSS, and JavaScript. These resources are uploaded to the flash memory of the NodeMCU. For uploading these files, I am using the LittleFS file system uploader.

Features

  • Sensor Data Reading: Utilizes the SHT20 sensor to accurately measure humidity and temperature.
  • WebSocket Server: Establishes a WebSocket server on the NodeMCU for real-time communication with connected clients.
  • Web Interface: Provides a web page where users can visualize sensor data in the form of a chart and toggle an LED.
  • Chart Display: Displays sensor data using HTML, CSS, and JavaScript for a user-friendly graphical representation.
  • LED Control: Allows users to remotely control a LED connected to the NodeMCU through the web interface.
  • Web Page Creation: The web pages are created using HTML, CSS, and JavaScript. These resources are uploaded to the flash memory of the NodeMCU. For uploading these files, the LittleFS file system uploader is used.

Additional Resources

For more detailed information and tutorials, refer to the following resources:

Example Image

About

programming a NodeMCU to read data from an SHT20 sensor (humidity and temperature) and send it through a WebSocket server.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published