An approach is provided for prescribing a first software architecture to implement service integration. The present invention relates to the photoelectric smoke sensor which detects smoke flowing into a housing by light. An anomaly is detected by a rule having condition set which the anomaly fu,lfils.