The Elephant is built from the Lego Spike Essential educational kit. When there is some meal in front of the color sensor, the elephant shakes its head contentedly. There is a belt drive to activate the head’s movement.
The set includes step-by-step building instruction and an example of program (in Spike environment).