IR sensor to get 1 or 0

thank you.

But I don't know what sensor to use.
can you tell me please?