How it works...

The first few lines of code import the Circuit Playground Express library and the time library. The script then enters into an infinite loop where it checks the state of touchpad A1 in each loop iteration. If it has detected a touch occurring, then it will print a message.