please can you say the type of sensors you used. And what you expect will your system done means system functions. What type of sensors you was used. You did’t mentioned.
I have a code for that application. I am also developed this automatic sliding door appication for one organization. So please explain the system function. I am also using the same device pic16f877a. Don’t worry i will help you…..