this code can be used to detect the presence (or absence!) of nearby objects such as magnets.