Analog in returning 1023, but DHT-11 still working

This morning I started having problems with the Analog-in of my Original Uno R3.

I have a DHT-11 temp/hum sensor and a water level sensor connected to A0, A1.
yesterday all was fine, now the water level sensor keeps returning 1023.
the DHT 11 still returns good temp/hum values. After some trouble shooting I made the following sketch to test the Analog inputs:

/*
analog in pin test

 This example code is in the public domain.

 */

// These constants won't change.  They're used to give names
// to the pins used:
const int analogInPin0 = A0;  // Analog input pin 
const int analogInPin1 = A1;  // Analog input pin 
const int analogInPin2 = A2;  // Analog input pin
const int analogInPin3 = A3;  // Analog input pin 
const int analogInPin4 = A4;  // Analog input pin
const int analogInPin5 = A5;  // Analog input pin 

int sensorValue0 = 0;        // value read from the input pin
int sensorValue1 = 0;        // value read from the input pin
int sensorValue2 = 0;        // value read from the input pin
int sensorValue3 = 0;        // value read from the input pin
int sensorValue4 = 0;        // value read from the input pin
int sensorValue5 = 0;        // value read from the input pin

void setup() {

   Serial.begin(9600);                  // initialize serial communications at 9600 bps:
   pinMode(sensorValue0, INPUT);         // initialize the pin as a input
   pinMode(sensorValue1, INPUT);         // initialize the pin as a input
   pinMode(sensorValue2, INPUT);         // initialize the pin as a input
   pinMode(sensorValue3, INPUT);         // initialize the pin as a input
   pinMode(sensorValue4, INPUT);         // initialize the pin as a input
   pinMode(sensorValue5, INPUT);         // initialize the pin as a input
}

void loop() {
  // read the analog in value:
  sensorValue0 = analogRead(analogInPin0);
  sensorValue1 = analogRead(analogInPin1);
  sensorValue2 = analogRead(analogInPin2);
  sensorValue3 = analogRead(analogInPin3);
  sensorValue4 = analogRead(analogInPin4);
  sensorValue5 = analogRead(analogInPin5);

  // print the results to the serial monitor:
  Serial.print("sensor0 = ");
  Serial.println(sensorValue0);
  Serial.print("sensor1 = ");
  Serial.println(sensorValue1);
  Serial.print("sensor2 = ");
  Serial.println(sensorValue2);
  Serial.print("sensor3 = ");
  Serial.println(sensorValue3);
  Serial.print("sensor4 = ");
  Serial.println(sensorValue4);
  Serial.print("sensor5 = ");
  Serial.println(sensorValue5);
  Serial.println("");

  delay(1000);
}

all pins return 1023 no matter what is connected (even if directly connected to ground).
However if I upload some code for the DHT11, it still works fine when connected to any of the Analog in pins.

What is going on here?

I think you have made a mistake in the line:

pinMode(sensorValue0, INPUT); // initialize the pin as a input

Shouldn't it be :

pinMode(analogInPin0, INPUT); // initialize the pin as a input

yes and no.

you are right about the mistake, but it is not nessasary to set the pinmode anyway.

just tested this code (incl, the mistake) on a nano.
there i get random (not 1023) values as expected for unconnected pins.

so still have the original question.