How to use value_template to extract data from the sensors command

A bad indentation error means you’ve got the wrong number of spaces at the start of one of your lines, and is nothing to do with the content of that line. Everything should be lined up exactly as per my example — but make sure you only have one top-level sensor: statement in your config.

Paste in your config as it stands — format it correctly using three backticks (```) either side or by using the </> button.