A connector mechanism includes: a first connector that is arranged on a first substrate a second connector that is arranged on a second substrate and is connected to the first connector in a positional relationship in which the second substrate and the first substrate face each other and a packing including: a first face that elastically abuts against the first substrate a second face that is a face on an opposite side to the first face and that elastically abuts against the second substrate and connector abutting convex portions that are protrusively provided with respect to an inner face of a connector space that is a through-hole which allows the first face and the second face to communicate and sealingly houses the connectors in a connected state, and that elastically abut against an outer face of the connectors disposed in the connector space and are disposed integrally with the connectors.