Go Down

Topic: A counter to my sensor (Read 126 times) previous topic - next topic

Gebex

Hi.

I am making a school project that is a rat trap. I want a door to close when something is inside. I have made a door that opens and closes when the motion detector shows a particular value. I need a code that when the door closes it stays shut. But i dont find anything.

Dear regards

wvmarle

Very simple. Just don't open the door again after it's been closed.
Quality of answers is related to the quality of questions. Good questions will get good answers. Useless answers are a sign of a poor question.

slipstick

Show us what you have now and say exactly what it does. Then we can help with improving it. But generally speaking making code not do something is quite easy.

Steve

Go Up