ESPHome Config crashes NodeMCU

I’m trying to convert NodeMCU with a DHT22 and a BMP180 sensors to ESPHome, but the module will only boot once or twice before locking up. When it works, I can see the sensor readings on the web page OK. Disconnecting the sensors will allow it to boot. This was working fine in Tasmota. Here is the config:

esphome:
  name: sensor_node_1
  platform: ESP8266
  board: nodemcuv2

wifi:
  ssid: 'MY_SSID'
  password: 'MY_Password'

# Enable logging
logger:

web_server:
  port: 80

# Enable Home Assistant API
api:

ota:

i2c:
  sda: D1
  scl: D2
  scan: True
  
sensor:
  - platform: dht
    pin: D8
    model: dht22
    temperature:
      name: "Attic DHT Temperature"
    humidity:
      name: "Attic DHT Humidity"
    update_interval: 20s

  - platform: bmp085
    temperature:
      name: "Outside Temperature"
    pressure:
      name: "Outside Pressure"
    update_interval: 20s