---
title: HMServiceTypeContactSensor
framework: homekit
role: symbol
role_heading: Global Variable
path: homekit/hmservicetypecontactsensor
---

# HMServiceTypeContactSensor

A contact sensor service.

## Declaration

```swift
let HMServiceTypeContactSensor: String
```

## See Also

### Safety and Security

- [HMServiceTypeMotionSensor](homekit/hmservicetypemotionsensor.md)
- [HMServiceTypeOccupancySensor](homekit/hmservicetypeoccupancysensor.md)
- [HMServiceTypeSecuritySystem](homekit/hmservicetypesecuritysystem.md)
