Hello John,
The two sketces separately works fine.
In the Dimmer code i can simple add code voor PIR or LDR, works fine.
But i do not know how to code to get it time switch.
When i switch with the dimtimes every works fine.
Below i used "SchSet" to switch with values.
//Schakelaar.
if (SchSet == HIGH)
{
Carport = 110;
Voordeur = 10;
//Console.println ("Buiten_Full_Hand");
}
else
{
Carport = 10;
Voordeur = 110;
//Console.println ("Off");