MCP4725 help make analogue pot to output linear 0-5v analogue out of DAC on UNO

Hi Arduino Community I
Need help to complete code so that I get a 0-5v output.
Im no coder just copy paste and test is my limits..

#include <Wire.h>
#include <Adafruit_MCP4725.h>

Adafruit_MCP4725 dac;


#define DAC_RESOLUTION    (8)

int knockB;


void setup(void) {
  Serial.begin(9600);
  Serial.println("Hello!");

  dac.begin(0x62);

  Serial.println("0-5v analog output voltage");
  
}

void loop()  {
  float Knock =  knockB * (5.0 / 1023.0);
  
float knockSignal = map(knockB, 0, 1023, 0, 255);

Serial.println("0-5v analog voltage");// Serial.println(Knock); 
Serial.println(Knock);
  Serial.println(knockB);
  Serial.println(knockSignal); 
knockB = analogRead(A2);
       dac.setVoltage(knockSignal, false);
 delay(500);    
}

I found this sine look up table generator, if only I knew how to implement it. Sine Look Up Table Generator Calculator

Im no coder just copy paste and test is my limits..

So it's time to learn it.

All you need is dac.setVoltage(), like this:

       dac.setVoltage(knockSignal, false);

Instead of knockSignal output the values from your sine table.