Ask alexa about a sensor state

Ok great, but I don’t know how to get this to work. I don’t know where to put your code. Also I’m already using this:

and you suggest using this: