Using sensor state in email notification

Please format your YAML code properly. As it is it is very difficult to read, and hence, make suggestions.

EDIT: If you’re not sure how, see especially item #11 from: