I would like to connect a relay, a 4-digit display, and a light sensors to a single Pi Zero W. I quickly realized that the relay and 4-digit display would conflict with one another because they are both using the GPIO18 pin. I don't want the relay and display to have the GPIO18 signal all the time.
If I "split" the GPIO18 signal in two, what hardware could I use to allow the signal to pass through only if another connected pin is 'on' (please see image).
Thank you in advance - having a great time playing with this.