The device has two hand made switches to indicate either if the cow hits the device's ground or ceiling. The "force" is measured by a simple light dependent resistor (aka. photoresistor). The microcontroller communicates with a processing sketch that plays several sounds, providing an audio feedback.