• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

BMP280

Q&A Forum › Category: ESP8266 › BMP280
0 Vote Up Vote Down
Luis Carlos Triviño Torres asked 5 years ago

Rui good afternoon, what a pity to bother so much, but I want to learn a lot, in Colombia I got the sensor BMP280 as I implement it in the project ESP32 web server: readings of the screen sensor ??? thanks for your help.

Question Tags: Luis C
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Luis.

We don’t have any unit using that specific sensor. But the project should work for you sensor with a few modifications.

First, you need to install this library for the BMP280: https://github.com/adafruit/Adafruit_BMP280_Library

Getting sensor readings with that library is very similar to the BME280. Take a look at the example to see how to take measurements: https://github.com/adafruit/Adafruit_BMP280_Library/blob/master/examples/bmp280test/bmp280test.ino

In the code, you should include this library instead:

#include <Adafruit_BMEP280.h>

Then, create an Adafruit_BMP280 object:

Adafruit_BMP280 bmp;

In the web server section, you just need to use the bmp object instead of bme, as follows:

client.println(bmp.readTemperature());

I hope this helps!

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.