Home Assistant, ESPHome, BMP280 - temperature and pressure monitoring.
List:

Raspberry Pi 3

ESP32 controller

BMP280 sensor

ESP32 custom case

Prepare image HAOS:
https://github.com/home-assistant/operating-system/releases/download/13.0/haos_rpi2-13.0.img.xz
unxz haos_rpi2-13.0.img.xz
sudo fdisk -l  
sudo dd if=Downloads/haos_rpi2-13.0.img  of=/dev/mmcblk0 status=progress bs=1M
First run HA
Setup wifi connection on first run:
Install Add-ons:
HA config structure
Connect BMP280 to ESP32

ESP32 and BMP280 final photos.

Connect esp32 to rpi for first initial flash

this is sample of config file:

esphome:
  name: esp32-01
  friendly_name: esp32-01

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "xxx"

ota:
  - platform: esphome
    password: "xxx"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esp32-01 Fallback Hotspot"
    password: "xxx"

captive_portal:

i2c:
  sda: 21
  scl: 22
  scan: True

sensor:
  - platform: bmp280_i2c
    temperature:
      name: "bedroom temperature"
      oversampling: 16x
    pressure:
      name: "bedroom pressure"
    address: 0x76
    update_interval: 60s

This is how looks sample of automation config

alias: "Temperature"
description: low temperature level
trigger:
  - platform: state
    entity_id:
      - sensor.temperature
    to: null
    for:
      hours: 0
      minutes: 30
      seconds: 0
condition:
  - condition: or
    conditions:
      - condition: numeric_state
        entity_id: sensor.temperature
        above: 25
      - condition: numeric_state
        entity_id: sensor.temperature
        below: 5
      - condition: numeric_state
        entity_id: sensor.temperature
        below: 0
action:
  - data:
      message: "Temperature is: {{ states('sensor.temperature')}} C"
      title: "Warning: temperature is {{ states('sensor.temperature')}} C"
    action: notify.email_notification
mode: single

Whole documentation is here: https://www.home-assistant.io/installation/raspberrypi