fixed mail sensor issues