Using Serial imput to run a code