Sensor on GPIO21/22; button S on GPIO12 (middle pin on GPIO13); Uno: RGB on D9/D10/D11, relay input on D12, relay supply on 5V. The relay switches on a LOW input and is for low-voltage loads only, ...