morse code flasher - lookup table question

The data that you pass to the flash() function has NOTHING to do with the data that you read from the DHT or that you send TO the serial port.

    Serial.flush();

Do you KNOW what this function does? If not, why are you calling it? If you do, explain just WHY it is necessary to call it.