Update 1.0.5 causing malfunctions

I was doing pretty well with a small sketch:

/*
  Arduino Uno used for S-meter
  Temporarily printing to LCD
   The circuit:
 * LCD RS pin to digital pin 12
 * LCD Enable pin to digital pin 11
 * LCD D4 pin to digital pin 5
 * LCD D5 pin to digital pin 4
 * LCD D6 pin to digital pin 3
 * LCD D7 pin to digital pin 2
 * LCD R/W pin to ground
 * 10K resistor:
 * ends to +5V and ground
 * wiper to LCD VO pin (pin 3)
 */
 
// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

int sensorPin = A0; 
int sensorValue = 0;
float s_meter = 0.0;

// the setup routine runs once when you press reset:
void setup() { 
  pinMode(A0, INPUT);
  analogReference(INTERNAL);
  // set up the LCD's number of columns and rows: 
  lcd.begin(16, 2);  
}

// the loop routine runs over and over again forever:
void loop() {
  //read the value from A0
  sensorValue = analogRead(sensorPin);
  s_meter = (sensorValue * (1.1/1023)/22);
  lcd.setCursor(0,0);
  lcd.print(s_meter);
  
  delay(10000);
                 
}

Then, the update notice appeared. I did the update, made some revisions and now the above no longer works.

It was giving me 0.50 on my lcd and now nothing happens. I checked and re-checked wiring and removed the
revisions I’d made. Unluckily, I hadn’t saved the previous under another name. I’m using Windows XP Pro and
not having any problems with the upload.

Ron, KE5QDA

Moderator edit:
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags added.

void setup() {
// pinMode(A0, INPUT); // <<<<<<<<<<<<<<<<<<<< Not necessary. Not appropriate. Remove it.
analogReference(INTERNAL);
// set up the LCD’s number of columns and rows:
lcd.begin(16, 2);
}

Produces less code. Uses less SRAM. Correct definition…

const int sensorPin = A0;

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

// the setup routine runs once when you press reset:
void setup() { 
  lcd.begin(16, 2);  
  lcd.setCursor(0,0);
  lcd.print( "Hello, world!" );
}

void loop() {
}

Result is?

I get no result using this code.

If I turn my contrast control down, I get a row of solid 5x7 dots…second row, nothing.

Problem solved. A wire had slipped out and I placed it back in the wrong hole. My BAD!
Thanks for your help!!

You are welcome. I'm glad you have it working. (Reply #1 and #2 still apply. ;))