preliminary code for colour sensing