export interface ParameterSensor {
    hour: number;
    day: number;
    date: number;

    //for DHT sensor
    vicitemperature?: number;
    vicihumidity?: number;
    viciluminosity?: number;

    // for NPK1 & NPK2 sensor
    soiltemperature?: number;
    soilhumidity?: number;
    soilconductivity?: number;
    soilph?: number;
    soilnitrogen?: number;
    soilphosphorus?: number;
    soilpotassium?: number;
}

export interface ApiResponse {
    data: {
      dht: Array<any>;
      npk1: Array<any>;
      npk2: Array<any>;
    };
    statusCode: number;
    message: string;
}
export interface DHTSensor {
    lightIntensity: number;
    temperature: number;
    humidity: number;
}

export interface NPKSensor {
    temperature: number;
    moisture: number;
    conductivity: number;
    ph: number;
    nitrogen: number;
    phosphorus: number;
    potassium: number;
}

export interface SensorData {
    dht: DHTSensor;
    npk1: NPKSensor;
    npk2: NPKSensor;
}

export interface StatusRelay {
    number: number;
    current_status: boolean;
}

