- Explore MCP Servers
- temperature_sensor_esp32_mcp9808
Temperature Sensor Esp32 Mcp9808
What is Temperature Sensor Esp32 Mcp9808
temperature_sensor_esp32_mcp9808 is a project that involves the use of an ESP32 microcontroller to read temperature data from an MCP9808 temperature sensor. It focuses on analyzing the temperature data before and after the replacement of a front door in a house.
Use cases
Use cases include evaluating the thermal benefits of home improvements like door replacements, conducting temperature studies for HVAC systems, and analyzing environmental data for research purposes.
How to use
To use temperature_sensor_esp32_mcp9808, set up the ESP32S3 board to read temperature information from the MCP9808 sensor via I2C. Install the necessary Python environment and dependencies as outlined in the README, and utilize the provided scripts to log and analyze temperature data.
Key features
Key features include the ability to log temperature data using a Python script, analyze the data with Jupyter notebooks, and visualize the results through various plotting tools. The project also includes a rudimentary README for guidance.
Where to use
temperature_sensor_esp32_mcp9808 can be used in residential settings for monitoring indoor and outdoor temperatures, particularly in studies related to energy efficiency and thermal performance of building components.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Temperature Sensor Esp32 Mcp9808
temperature_sensor_esp32_mcp9808 is a project that involves the use of an ESP32 microcontroller to read temperature data from an MCP9808 temperature sensor. It focuses on analyzing the temperature data before and after the replacement of a front door in a house.
Use cases
Use cases include evaluating the thermal benefits of home improvements like door replacements, conducting temperature studies for HVAC systems, and analyzing environmental data for research purposes.
How to use
To use temperature_sensor_esp32_mcp9808, set up the ESP32S3 board to read temperature information from the MCP9808 sensor via I2C. Install the necessary Python environment and dependencies as outlined in the README, and utilize the provided scripts to log and analyze temperature data.
Key features
Key features include the ability to log temperature data using a Python script, analyze the data with Jupyter notebooks, and visualize the results through various plotting tools. The project also includes a rudimentary README for guidance.
Where to use
temperature_sensor_esp32_mcp9808 can be used in residential settings for monitoring indoor and outdoor temperatures, particularly in studies related to energy efficiency and thermal performance of building components.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
temperature_sensor_esp32_mcp9808
This is the repository for data and analysis for my blog post Quantifying the Thermal Benefits of Replacement of my House’s Front Door.
Highlights of key directories or files of interest are
- esp32_wifi - the build directory for the ESP-IDF code project for the ESP32 microcontroller-based temperature sensors.
- temperature_logger.py - Python script to query ESP32 temperature sensors and log data.
- horemheb - Python package (named after an Egyptian pharoah) of tools for analysis and plots produced in this blog.
- 100_400_plot_temperature.ipynb - plot raw temperature data.
- 200_200_analyze_temperature_over_params.ipynb - Analysis of data, application of Newton’s Law of Cooling.
- 300_200_optimize_cooling_de.ipynb - Analysis of dynamical cooling model.
- 100_400_analyze_LVK_weather_data.ipynb - For reference, load and look at the temperature and humidity measurements from the LVK airport over the duration in question here. I didn’t apply this data to the analysis, but it is available. It is possible that there is a correlation between cooling and wind speed or direction.
1/22/2025
An ESP32S3 board reads temperature information from an MCP9808 temperature sensor via I2C.
The set up of this project follows that of labrador_classifier.
Some basic setup:
micromamba env create -p "./.venv_temp_sense" "python=3.13"
micromamba activate "./.venv_temp_sense"
micromamba install "uv"
uv pip install zeroconf requests # for web access and mDNS hostname lookup
uv pip install rich
uv pip install ipykernel ipywidgets # for notebooks
uv pip install pandas matplotlib
uv pip install scipy
From prompts, I created a 3.13 python environment with idf_tools.py install-python-env.
Then, as per the “Getting started with the ESP-IDF” Evernote, the following commands created a VScode session that did create a build/ directory:
. ~/stash/esp/esp-idf/export.sh
export IDF_XTENSA_GCC="$(which xtensa-esp32-elf-g++)" # <- not sure if this is crucial, but it works
cd ~/Work/Animata/Esp_projects/temperature_sensor_esp32_mcp9808/esp32
cursor .
Set up package
Created a package to manage the loading and fitting of this data. Named package after Egyptian pharoah Horemheb:
cd horemheb uv pip install -e .
March 20, 2025
Downloaded humidity and wind data over this period of time for LVK from the National Weather Service. Click Advanced Options and in the pop-up window click Permanent Chart to select the item to be plotted and Gather Historical Data to select a date range. Then, from the resulting plot, click the bars in the upper right and the click Download CSV from the pull-down menu.
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










