Total noob needs help with hall sensor and Oled

Hi there,

I'm on a small project with a hall sensor and an Oled I2C
When I run the code on the Arduino, the Oled screen comes to live, but doesn't show what I expected to see.
How do I fix this problem? Has it something to do with the screen I'm using?

Here is the scheme:

And the code:

</>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

Adafruit_SSD1306 display(4);

float value=0;
float rev=0;
int rpm,count=0;
int oldtime=0;
int time;

void isr() //interrupt service routine

{

rev++;
count++;

}

void setup() {

display.begin(SSD1306_SWITCHCAPVCC,0x3C);
display.clearDisplay();

attachInterrupt(0,isr,RISING); //attaching the interrupt

}

void loop() {

delay(1000);

detachInterrupt(0); //detaches the interrupt
time=millis()-oldtime; //finds the time
rpm=(rev/time)*60000; //calculates rpm
oldtime=millis(); //saves the current time

rev=0;

attachInterrupt(0,isr,RISING);

display.clearDisplay();
display.setTextSize(2);
display.setCursor(0,0);
display.println("COUNT");
display.setCursor(70,0);
display.println(count);
display.setTextSize(3);
display.setTextColor(WHITE);
display.setCursor(34,20);
display.println("RPM:");
display.setTextSize(2);
display.setCursor(40,48);
display.println(rpm);
display.display();

}
</>

Hello gervisz

Post your sketch, well formated, with comments and in so called code tags "</>" and a none-Fritzing schematic to see how we can help.

You need to show your work if this is indeed a tutorial.

Or flag the mods to move it somewhere else where you may get some help ?

That tells me you are not writing a beginners tutorial, so I have moved your post here.
Please read the description of a topic section before you post there.