using the mirror as sensor