How to manually input high or low at any GPIO pin without sensor

I am not having any sensor with me this time and if I want to design a project to detect HIGH or LOW input at GPIO ‘0’ pin using digitalRead, then how can I change the input for different readings.

@priyanshiomer707

You can use a male to male wire and connect one end to pin 0.

The other end can be connected to 3.3V and GND to read HIGH and LOW respectively.