ESP senseair s8 Failed config , component not found : sensor

This is the first ESP device I am trying to get working

esphome:
  name: "esp32-co2-test"
  friendly_name: "esp32-co2-test"

esp32:
  board: esp32-c3-devkitm-1
  framework:
    type: arduino

# Enable logging
logger:

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

ota:
  password: "XXXXXXXXXX"

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

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

captive_portal:
    
uart:
  rx_pin: GPIO20
  tx_pin: GPIO21
  baud_rate: 9600

Sensor:
    Platform: senseair
    co2:
      name: "esp32-co2-test"
    Temperature:
      name:"esp32-c02-temperature"
    update_interval: 60s

Here is the error code when I try to upload

INFO Reading configuration /config/esphome/esp32-co2-test.yaml...
Failed config

Sensor: [source /config/esphome/esp32-co2-test.yaml:38]
  
  Component not found: Sensor.
  Platform: senseair
  co2: 
    name: esp32-co2-test
  Temperature: name:"esp32-c02-temperature"
  update_interval: 60s

Any help would be greatly appreciated.

Replace Sensor: with sensor:.

Platform too.

ESPHome and home Assistant are case sensitive.

Success-Thanks, the code was manually typed because paste was not working, hence the typos .

I Have every thing working but 2 questions
In the Log i get this line

[14:54:10][W][uart.arduino_esp32:163]:   You're using the same serial port for logging and the UART component. Please disable logging over the serial port by setting logger->baud_rate to 0.

And for manual calibration here is the suggested yaml

on_...:
  then:
    - senseair.background_calibration: my_senseair_id

I have seen “on_press” what is getting pressed to callibrate?

on_...:
  then:
    - senseair.background_calibration_result: my_senseair_id

Same question what button to press to print result to log?
Thanks

That code can be used a number of ways.

Try it under a button.

You may need to set logs to verbose to see calibration details.