design and construction of noise detector in library