@yasmine1205, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project
See About the Installation & Troubleshooting category.
Please provide a wiring diagram and your code. When posting code, please don't forget to use so-called code tags so the forum software does not mangle it, it's easier to read and easy for others to copy; use the </> as shown below.