I’d suggest buying an Arduino starter kit. You get all the basic components so you can prototype a solution before implementing it. Special for your application would be a relay module and some kind of special sensor for counting people entering or leaving the room (may be beam break sensor) and light level sensor (ldr). Also consider a passive infrared sensor mounted in such a way that the cats would not trigger it.