Added CDS cell calibration function, changed CDS threshold to global
variable from define statement
Added optosensor calibration function, needs default optosensor
threshold to be added later