2D Materials For Magnetic And Optoelectronic Sensing Applications