ESP Home Binary Sensor IF

Thanks for helping.

But I’m getting this error while compiling.

What is the problem?