The 51uG has four ways of detecting an input: LDRs, an accelerometer, a pressure sensor, and buttons. To output information to a user, the 51uG uses a piezo speaker, LEDs, and a vibration motor. Some of the input devices & all of the output devices are hidden within the slug's silicone molded skin. The LDR and buttons, however, protrude from the skin. To bring the creature's imagined traits to life, the user needs to pick up the slug to initiate it, and then hide the LDRs from light, whilst constantly moving the slug to keep it from emitting an annoying screech. When "comfortable", the slug would give off a soothing sound. To silence/kill the slug, you need to squeeze the slug, while holding both of the buttons underneath it for a set amount of time.
Open source code
Click here to grab this project's code