If you are searching an ultrasonic ranging module, the HC-SR04 is good choice: Its stable performance and high ranging accuracy make it a popular module in electronic market. It's cheaper than an IR range finder with similar range accurancy and distance.
Electronic brick of microphone can be connected to the analog I / O port, when speaking to the microphone, the analog value will be changed. A recorder can be made by reading and saving the analog value.
Electronic brick of tilt switch can be connected to analog I/O port and used in tilt sensor for smart car or robot. When the sensor is in the horizontal position, the output is high level; when the sensor rotates counterclockwise to form an angle of more than 15 ° with the horizontal line, the output is low level.