The Python code for our first experiment in ambient intelligence