## Disclaimer

Due to the frequency of game updates, all solutions are subject to change and may or may not be functional.

## Geometry of Daylight Sensors

The Solar Angle variable from Daylight Sensors go from 0 degrees at mid-day, to 180 degrees at midnight, and then back to 0 degrees. The value is never negative.

## How much light/dark do plants need?

Plant 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Corn L L L L L L L L L D D D D
Potato L L L L L L L L L L D D D D
Pumpkin L L L L L L L L L D D
Rice L L L L L L L L L L D D D D D
Soybean L L L L L L L L L L D D D D D
Tomato L L L L L L L L D D D D D
Wheat L L L L L L L L L L D D D D D
Darga Fern L L L L L L L L L L D D D D D
Fern L L L L L L L L D D D D D
Hades Alpha L L L L L L L L L L D D D D D
Hades Beta L L L L L L L L L L D D D D D
Peace Lily L L L L L L L L L L D D D D D
Switch Grass L L L L L L L L L L D D D D D
Tropical Lily L L L L L L L L L L D D D D D
Winterspawn Alpha L L L L L L L L L L D D D D D
Winterspawn Beta L L L L L L L L L L D D D D D

As you can see from the table above, most plants need a minimum of 10 minutes of light, and 5 minutes of darkness. We can split the remaining 5 minutes equally, giving us 12.5 minutes of light and 7.5 minutes of darkness.

## Let's do some math...

• The planet rotates 360 degrees per day.
• A day is 20 minutes.

`360 degrees / 20 minutes = 18 degrees per minute`

• We need light for 12.5 minutes per day.

`18 degrees per minute * 12.5 minutes = 225 degrees`

• We want half the light-budget on either side of mid-day

`225 degrees / 2 = 112.5 degrees on either side`

## Bringing it all together

What you need:

• Logic I/O (x2) > Reader and Batch Writer
• Logic Processor > Compare
• Logic Memory
• Kit (Sensor) > Daylight Sensor
• Place the Daylight Sensor outside, facing up. Direction of data-port doesn't matter.
• Logic Reader > IN: Daylight Sensor VAR: Solar Angle
• Logic Memory > Value: 112.5
• Logic Compare > 1: Logic Reader 2: Logic Memory OUT: Less
• Logic Batch Writer > IN: Logic Compare OUT TYPE: Grow Light OUT VAR: On

## Saving Power

You can save a bit of power by delaying turning on the light. If you reduce the time with lights to 10.5 minutes, then you can set the Logic Memory to 94.5.