Setting up i2c 1602 lcd display

hi all,
i tried to show some sensor values on my i2c 1602 lcd display.

thi is my entry in the .yaml:

display:
    - platform: lcd_pcf8574
      dimensions: 16x2
      address: 0x27       
lambda: |-
        it.printf("Draussen: %.1f", id(tempdraussen).state);
        it.printf(0, 1, "Drinnen: %.1f", id(tempdrinnen).state);
        it.print(14, 0, "C");
        it.print(13, 1, "C");

and by restarting the assistant i get this error:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:226
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 19:35:37 (2 occurrences)
Last logged: 19:46:53

[548147354944] The system cannot restart because the configuration is not valid: Integration error: display - Integration ‘display’ not found.
[548147354944] The system cannot restart because the configuration is not valid: Integration error: display - Integration ‘display’ not found. Integration error: i2c - Integration ‘i2c’ not found.
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 226, in handle_call_service
await hass.services.async_call(
File “/usr/src/homeassistant/homeassistant/core.py”, line 2012, in async_call
response_data = await coro
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/core.py”, line 2049, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/hassio/init.py”, line 599, in async_handle_core_service
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Integration error: display - Integration ‘display’ not found.

Where did you put your code?
This yaml is for the esp module

Hi pepe
I put it in configuration.yaml.

My display is a 16x2digits LCD screen. It is attached with only 4pins to the gpio: GND, 5v,SDA, SCL
What could be the right integration code?
Sorry for the late reply