Извиняюсь что не писал долго, проект был отложен и теперь снова к нему вернулся и наступил на грабли,
#include <LiquidCrystal.h>
#include <MsTimer2.h>

const int sensorPin = A1; // select the input pin for the potentiometer
const int sensor1Pin = A2;


int ledPin = 13; // select the pin for the LED

int sensorValue = 0; // variable to store the value coming from the sensor
int sensor1Value = 0;

int ledValue = 0;
int led1Value = 0;

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

void flash_led() //обработчик прерывания
{
digitalWrite(ledPin, HIGH);
delay(led1Value); //длительность импульса
digitalWrite(ledPin, LOW) ;
}

void setup() {
// declare the ledPin as an OUTPUT:
pinMode(ledPin, OUTPUT);

MsTimer2::set(ledValue, flash_led); // будет срабатывать каждые 30сек.
MsTimer2::start(); //включить таймер

// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
}

void loop() {

// read the value from the sensor:
sensorValue = analogRead(sensorPin);
sensor1Value = analogRead(sensor1Pin);


lcd.setCursor(0, 1);

// map it to the range of the analog out:
ledValue = map(sensorValue, 0, 1023, 5000, 60000);
led1Value = map(sensor1Value, 0, 1023, 6, 60);

lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Pause ");
lcd.print(1000 / ledValue);
lcd.print(" ");

lcd.setCursor(0, 1);
lcd.print("impuls ");
lcd.print(led1Value);
lcd.print("ms ");

}
показания на дисплее появляются по буквенно с паузой в 1сек, pin13 светится всё время, уже запутался полностью с этим прерыванием...