if (250 < lightlevel && lightlevel < 800)
change to
if (lightlevel > 250 && lightlevel < 800)
But the ; should not be there.
if (motorStart > 0 && lightlevel >= 800);
if (250 < lightlevel && lightlevel < 800)
change to
if (lightlevel > 250 && lightlevel < 800)
But the ; should not be there.
if (motorStart > 0 && lightlevel >= 800);