My final year university project (2010) involving what was then a smartphone, a Nokia E51, connected via Bluetooth to a Shimmer sensor running a basic fall detection algorithm. These sensors used TinyOS and thus the somewhat unusual nesC language.
The idea was that a fall-risk person would wear the sensor, and then if a fall was detected the phone would automatically call an emergency contact and route audio to the loudspeaker. It mostly worked.
The phone ran a version of python that allowed for easy access to most of its peripheral, and relatively straightforward graphing of the received signals.
The final document is probably worth a look. Tex sources included.