Help a complete noob with formatting please

I am completely new to HA and YAML. I am trying to get a grasp on the formatting of my configuration file and I do best with examples of things I’m trying to do and learning from it. That being said, I am trying to add another weather sensor along side the “yr” platform that comes with HA. I don’t understand how to add another one to it. I have

sensor:
platform: yr
monitored_conditions:
- symbol
- precipitation
- windSpeed
- windDirection
- humidity
- fog
- cloudiness
- lowClouds
- mediumClouds
- highClouds
- dewpointTemperature

platform: wunderground
api_key: xxxxxxxxxxxxxxxx
monitored_conditions:
- temp_f
- weather
- feelslike_f
- heat_index_f
- wind_mph
- wind_dir
- relative_humidity
- precip_today_in
- solarradiation

and it throws an error when I save the file and restart HA. If I comment out one of the sections from platform down and only have one platform active it works. I have it spaced correctly even though it it not displaying it that way here. Please help.

Be sure to highlight what you paste from your configuration file and hit the </> button to preserve the formatting. Spacing is very important and using the </> preserves that formatting so it can be checked.

Also, post your error log information related to the error. Most of the time it will tell you the line related to the error.

Yes please use the code tag < / >

This might help though. After you declare a component like sensor each platform starts with hyphen.

Here is an example from my sensor file.

sensor:

  - platform: wunderground
    api_key: xxxxxxxxxxxxx
#    pws_id: enter_pws_id
    monitored_conditions:
      - weather
      - temp_f
#      - feelslike_f
      - feelslike_string
#      - heat_index_f
      - heat_index_string
#      - dewpoint_f
      - dewpoint_string
      - wind_mph
      - UV
      - pressure_in
#      - pressure_mb
      - wind_dir
#      - wind_string
      - relative_humidity
      - visibility_mi
      - precip_today_in
#      - precip_today_string
      - solarradiation
      - alerts

  - platform: nest
    monitored_conditions:
      - temperature
      - target
      - humidity
#      - mode
#      - last_ip
#      - local_ip
      - last_connection
      - battery_level
#      - weather_condition

Hope this helps.

Yup, that did it.
Thanks I appreciate the help!