Safe thermostat for narcotic drug storage