Metal halide perovskites: stability and sensing-ability