In the following document, perform the development and evaluation of a device capable of identifying the sleep state of a person from the measurement of the respiratory frequency, integrating it into a Z-Wave system to perform spatial domotic control. It was evidenced, by means of the analysis of electrical consumption tests, how the implementation of the system generates a significant saving of 38% with respect to the average monthly consumption in a house, and how its application contributes to an environment conducive to sleep by reducing noise that generate the multimedia equipment in the room -off immediately after a detection-. The correct functioning of the sensor is observed due to the characteristics of the measurements of quality of service (QoS) parameters: Delay, Throughput and Jitter, guaranteeing that the loss of information is null and that the system implemented is viable.