What is wrong with this template sensor in my config file

What is wrong with this code? The error i get is below the code. I mean i can see what it is saying the problem is but dont know how to fix it.

template:
  - sensor:
      - name: "Pool Pump Pressure"
        unique_id: "1001"
        unit_of_measurement: "PSI"
        icon: "mdi:gauge"
        state: >
          {% set voltage = states('sensor.pool_pressure') | float(0) %}
          {{ ((voltage / 5 - 0.1) * 4 / 3) | round(2) }}
        availability: "{{ states('sensor.pool_pressure') | is_number }}"

      - name: "Pool Water Temp"
        unit_of_measurement: '°F'
        value_template: >-
          {% set t = states('sensor.pool_temperature') | float %}
          {{((t)*9/5)+32}}

Invalid config for [template]: [value_template] is an invalid option for [template]. Check: template->sensor->1->value_template. (See /config/configuration.yaml, line 111).

Thanks

The current format uses state (like in the top example) not value_template.

Thank you so much, that did it.