is it ok to use compressed gas duster to clean a mouse sensor

Solution
A quick blast to remove dust should not hurt it. You are not cleaning the sensor as much as a lens that is placed over it.

If you are worried, keep the can just a bit farther away.