I want to reset pin by code and check status pin
What do you mean by "reset pin" and "status" ?
You need to provide a great deal more information.
WHAT pin do you want to reset?
What do you mean by “reset”
If you mean that you want your program to cause the Arduino to reset then you are approaching the problem the wrong way.
What pin do you want to check the status of?
If you have a program that is not working please post it together with an explanation of what it actually does and what it should do.
And please use the code button </>
so your code looks like this
and is easy to copy to a text editor