A detector of sleep disorders for using at home