How do I print the state of sensor?

To debug my code, I’d like to print the current state of the sensor at each (10sec) loop.
This code does not work. What am I doing wrong?

i2c:
   sda: GPIO21
   scl: GPIO22
   scan: true

ads1115:
  - address: 0x48
    continuous_mode: off

sensor:
  - platform: ads1115
    multiplexer: 'A0_GND'
    gain: 4.096
    id: ads1115_a0_gnd
    name: "ADS1115 A0_GND"
    update_interval: 10sec
    accuracy_decimals: 3
    unit_of_measurement: "Amps"
  
    filters:
      - offset: -2.51
      - multiply: 15.15

    logger.log:
      format: 'Value of ADS1115 is: %i'
      args: [id(ads1115_a0_gnd).state ]  

   text_sensor:
# it continues...

Regards, Martin

Your logging action needs to be under a trigger, like on_value.

10sec may need to be 10s.

text_sensor indentation is wrong.

It’s good to post excerpts of your compile errors when seeking support.