Boolean global variable linked to contact sensor for status

Trying to get a singe feedback status to display on dashboard if any window or door is opened. I created a Global Variable and Connected it to a contact sensor, but the contact sensor never changes state. Can someone help me out how to do this?