Problem with weird values from soil sensor

Hi. I’m not completely sure if this is related to esphome or influxdb or grafana, but I’ll give it a go here anyway. I’m having an esp32 connected to capacitive soil sensor. I have that setup on esphome on home assistant and it is supposed to safe the information on influxdb and then I’d make graphs of it using grafana. But even though my esphome log shows values that makes sense, my influxdb and grafana shows values all over the place. I have my yaml-code, esphome log and photo of influxdb next. Any help is appreciated! Thank tou everyone in advance.


esphome:
  name: soil-sensor
  platform: ESP32
  board: esp32doit-devkit-v1
  on_boot:
    then:
      lambda: |-
        id(output_v).turn_on();

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "fabc905d74b9700399b6b8777dbd90f0"

wifi:
  ssid: "TP-Link_6988"
  password: !secret wifi_password
  
  manual_ip:
    # Set this to the IP of the ESP
    static_ip: 192.168.0.120
    # Set this to the IP address of the router. Often ends with .1
    gateway: 192.168.0.1
    # The subnet of the network. 255.255.255.0 works for most home networks.
    subnet: 255.255.255.0

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Soil-Sensor Fallback Hotspot"
    password: "wipg5GNdiXyA"

captive_portal:

sensor:
  - platform: adc
    pin: 36
    name: "Soil moisture"
    attenuation: 2.5db
    unit_of_measurement: "%"
    filters:
      - sliding_window_moving_average:
          window_size: 10
          send_every: 10
    
      - calibrate_linear:
        - 0.80 -> 0.0
        - 0.30 -> 100.0
      
      - throttle: 5s
      - heartbeat: 1min
    # force_update: true


output:
  platform: gpio
  pin: 32
  id: output_v

Fixed, had a stupid user error on query. For some reason the query was entity_id != "soil moisture"