What good is a jail cell without a lock?
Have you tried clicking on the green switches?
They can toggle back and forth a bit.
There is a hint in the Generator building.
There is another hint in the Stendahl Mansion.
Did you notice that the left most switch always works?
A form of binary code is being used in the lock.
You need to lower all the switches.