Infra-red electronic for WC flushing cistern