This is just put together from some tutorials Randomnerdtutorials, works well enough to have some cheap sensors flying around. I use these modules together with Mosquitto and NodeRED in a Raspberry Pi 3 for temperature monitoring at home.
Application example Circuit overall- Wemos / Lolin D1 Mini or equivalent D1 example
- BMP280 Temp + Pressure Sensor BMP280 Breakout example
- 128*64 OLED Display, better use Adafruit to support the Company Oled Display example
- Case, 3D printed Thingiverse, NodeMCU V3 Case
- ESP ESP Arduino Libraries
- Pubsubclient library pucsubclient
- BMP 280 Library DFRobot_BMP280
- OLED Display Library (Adafruit Oled Library)[https://github.com/adafruit/Adafruit_SSD1306]
- Get components, put them together as shown in circuit
- Install arduino framework and needed libraries
- Edit code, you'll need to put in your wlan ssid and password and your mqtt IP which needs to be in reach within network , change MQTT device ID and Topic
- compile, upload
- some oled display have a different base address
- I experienced some issues during uploading new firmware while the program is running, caused by messages on the serial port
- try it again in between 2 MQTT messages, shortly after temperature update