modified change of mode
added option to deactivate MPL3115A2 sensor