Rfid and servo problem

so my project has a bit problem, the servo still moving even tho I scan a wrong card & (the originals position is 180 degree )after that the servo still at them same position of 90 degree and it will not move anymore. PLEASE HELP ASAP

It is probably the code.

Which we can help with as soon as you post it.

Use the <CODE/> button in the message composition window toolbar and doe what is says:

type or paste code here

a7

Welcome, @randomnewbie!

Since you’ve just recently been through our new member registration, I’d like to ask - does this look at all familiar, or did you somehow miss the normal registration path?

Your answer will be informative, as if there’s a way that you got here without seeing that info, we need to know about it, to repair the process.

As soon as you’ve given us a bit more information, I’m sure someone will be glad to assist you, but remember - everyone who responds to your request is a volunteer, there are no paid helpers; so respect is the order of the day.

Thanks!

Perhaps nobody told you that we can not see what you see. In order to help you have to first of all show all your code in code tags, if there is Serial output also post that in code tags. Now draw by hand where each wire goes then post photos of the drawing. You should also have read the pinned post 'How to get the most from the forum'.
Now in your first post after providing all that, tell us what you expected to happen and what actually happened.

Also on top of the code, tell us more about which RFID, which servo, how things are wired and powered …

Was every card programmed with the same value?

After the servo was sent to 90 state the program must know the servo must be returned to 180 state. Write to a variable to indicate the state level, and test the variable to know the next move.