Microphones are designed to detect sound waves in the air, while hydrophones are used to detect sound waves in water. The basic principle is the same: both convert acoustic signals into electrical signals, but they are optimized for their respective media.