Calise detects background light through your webcam and adjusts your screens brightness. Unfortunately, it's linux only. Are there Windows friendly alternatives, or a way of emulating it while using windows?
What you want is definitely possible. The best solution is to use your laptop's built-in light sensor, if it has one and you can use it. See my comments on your question, above.