The applications of pyroelectric devices