An attempt to implement light sensor