core13: An Arduino core for the Attiny13 *testers wanted*

When reading analog values you use the ADC number, so for example reading pin PB2 you should use analogRead(1);

pin PB2 analogRead(1);
pin PB4 analogRead(2);
pin PB3 analogRead(3);

To get stable readings connect a 100nF capacitor between Gnd and Vcc