What part of this would be illegal? It's just a zigbee door sensor. The only issue I could see is the college getting upset but if anything they'd just say 'take it down'
object detection of people from images is probably what they are referring to. there are maybe some state laws that could be stretched to include that but i would say presumptively legal