Dual use sensors for lights in Solarpunk

a vid that i have seen people ask alot on how to use day sensor and rain sensor in tandem to power lights so if its night the lights come on. if it rains the lights come on